Hi, Incorrect calculation of chart scales caused some points to plot outside the grid area. When there are multiple values for the Y axis like [1,2,3] in the chart configuration, only 1 was passed for scale calculation so that points belong to other series plotted outside.
This behaviour is fixed now. Take an update from https://github.com/wso2/VizGrammar/igviz.js It seems like [1] is a limitation of Vega. Will provide a fix for getting "undefined" for tooltip value. Regards, Dunith On Fri, Sep 25, 2015 at 8:58 PM, Thanuja Uruththirakodeeswaran < [email protected]> wrote: > Hi Tharik, > > Yes as you said vega chart is drawing the y axis by considering the first > column (here in my case CreatedInstanceCount) as shown in the below image > [1]. As we discussed in offline, in my case I can't define the max value to > some constant as with time interval, member count will vary. Thanks a lot > for the help Tharik. > > Thanks. > > On Fri, Sep 25, 2015 at 5:53 PM, Thanuja Uruththirakodeeswaran < > [email protected]> wrote: > >> Hi Nipuna, Tharik, >> >> Thanks a lot for the suggestions. I'll follow your suggestions and let >> you know. >> >> Thanks. >> >> On Fri, Sep 25, 2015 at 5:05 PM, Tharik Kanaka <[email protected]> wrote: >> >>> Hi Thanuja, >>> >>> I have already noticed this in CEP and reported in a JIRA [1]. This >>> only happens when you multiple lines to chart. Root cause for this is that >>> Vega chart will draw the Y axis by considering only first column values. In >>> your case it has considered "CreatedInstanceCount" where as other lines are >>> plotted outside. >>> >>> You will see decimals since Y axis meant to plot 10 points since maximum >>> value is 5, it is plotted by 0.5. It will not happen if maximum value >>> becomes large number such as 50 where as plotting will happen by 5, 10, 15 >>> and so on. >>> >>> [1] https://wso2.org/jira/browse/CEP-1387 >>> >>> On Fri, Sep 25, 2015 at 4:27 PM, Nipuna Chandradasa <[email protected]> >>> wrote: >>> >>>> Hi Thanuja, >>>> >>>> Quick fix for few of these problems. >>>> >>>> For the 1st one check the domain which define the range of the y scale. >>>> may be they are given in decimals. >>>> >>>> most of the time y axis value range is mapped with the height of the >>>> SVG element. if you can quickly look in to it and just adjust the width of >>>> the SVG element or change the range mapping value in y scale u may be able >>>> to solve 2nd issue. >>>> >>>> >>>> Thanks. >>>> >>>> >>>> On Fri, Sep 25, 2015 at 4:05 PM, Thanuja Uruththirakodeeswaran < >>>> [email protected]> wrote: >>>> >>>>> Hi All, >>>>> >>>>> I'm generating a line chart to show details with DAS analytics >>>>> dashboard using Line Chart Gadgets as below. This line chart uses D3 >>>>> library and Vega. >>>>> >>>>> >>>>> >>>>> Here I'm facing following problems: >>>>> 1. Even though member count values (Y axis values) are integers, in >>>>> this chart axis values are populated as decimals and I tried to use >>>>> 'round' >>>>> property for y axis configuration and couldn't fix it. >>>>> >>>>> 2. Also y axis value range is also limited to 5 as shown above >>>>> >>>>> 3. As shown in the below image, tool-tip pop y axis value shown as >>>>> undefined and sometimes tool-tips are not removed. >>>>> >>>>> >>>>> >>>>> I discussed these issues with Dunith also. It will be helpful if these >>>>> issues are fixed. >>>>> >>>>> Thanks. >>>>> >>>>> -- >>>>> Thanuja Uruththirakodeeswaran >>>>> Software Engineer >>>>> WSO2 Inc.;http://wso2.com >>>>> lean.enterprise.middleware >>>>> >>>>> mobile: +94 774363167 >>>>> >>>>> _______________________________________________ >>>>> Dev mailing list >>>>> [email protected] >>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>>> >>>>> >>>> >>>> >>>> -- >>>> Nipuna Marcus >>>> *Software Engineer* >>>> WSO2 Inc. >>>> http://wso2.com/ - "lean . enterprise . middleware" >>>> Mobile : +94 (0) 713 667906 >>>> [email protected] >>>> >>>> _______________________________________________ >>>> Dev mailing list >>>> [email protected] >>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>> >>>> >>> >>> >>> -- >>> >>> *Tharik Kanaka* >>> >>> WSO2, Inc |#20, Palm Grove, Colombo 03, Sri Lanka >>> >>> Email: [email protected] | Web: www.wso2.com >>> >> >> >> >> -- >> Thanuja Uruththirakodeeswaran >> Software Engineer >> WSO2 Inc.;http://wso2.com >> lean.enterprise.middleware >> >> mobile: +94 774363167 >> > > > > -- > Thanuja Uruththirakodeeswaran > Software Engineer > WSO2 Inc.;http://wso2.com > lean.enterprise.middleware > > mobile: +94 774363167 > > _______________________________________________ > Dev mailing list > [email protected] > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- Regards, Dunith Dhanushka, Senior Software Engineer WSO2 Inc, Mobile - +94 71 8615744 Blog - dunithd.wordpress.com <http://blog.dunith.com> Twitter - @dunithd <http://twitter.com/dunithd>
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
