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
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
