Can we provide percentage values for width and height options where the chart will scale with parent element size? AFAIK we are having issues in current implementation when scaling charts and we have use cases for that.
Thanks, CD On Wed, Dec 2, 2015 at 4:51 PM, Sriskandarajah Suhothayan <[email protected]> wrote: > > Will it be more user friendly if we move > > "metadata" : { > > "names" : ["rpm","torque","horsepower", "engineType"], > > "types" : ["linear","linear", "linear","ordinal"] > > }, > > > From data to chart config section? > Thoughts > > Suho > > On Wed, Dec 2, 2015 at 4:42 PM, Tharik Kanaka <[email protected]> wrote: > >> Hi All, >> >> Earlier there was an option to define multiple y Axes for the Line chart >> which has violated the dimension model. Now instead we are having colour >> dimension which will group and draw multiple lines on specified column. >> >> On the hand there will be an option to draw different charts on same axes >> canvas where user can draw a line chart and also a bar chart on different >> columns. >> >> Apart from that we have decided to use linear, ordinal and time as the >> types instead of using C,N and T. In configurations we will specify column >> name instead of index which will improve the readability of the >> configurations. >> >> Please refer the following table for configuration comparison. >> >> *Old Igviz* >> >> *New VizGrammar* >> >> var config = { >> >> "xAxis": 0, >> >> "yAxis": [1,2], >> >> "padding": 60, >> >> "width": 480, >> >> "height": 360, >> >> "chartType": "line" >> >> } >> >> var config = { >> >> x : "rpm", >> >> chart : >> >> [ >> >> {type : "line", y : “torque", color: "engineType"}, >> >> {type : "bar", y : "horsepower"} >> >> ], >> >> maxLength: 10, >> >> width: 400, >> >> height: 200 >> >> } >> >> var data = { >> >> "metadata" : { >> >> "names" : ["rpm","torque","horsepower", "engineType"], >> >> "types" : ["N","N", "N","C"] >> >> }, >> >> "values": [ >> >> {1, 10, 1, “Piston”}, {1, 12, 14, “Rotary"} >> >> ] >> >> }; >> >> >> var data = { >> >> "metadata" : { >> >> "names" : ["rpm","torque","horsepower", "engineType"], >> >> "types" : ["linear","linear", "linear","ordinal"] >> >> }, >> >> "values": [ >> >> {1, 10, 1, “Piston”}, {1, 12, 14, “Rotary"} >> >> ] >> >> }; >> >> >> Regards, >> >> On Wed, Dec 2, 2015 at 1:15 PM, Srinath Perera <[email protected]> wrote: >> >>> Actually way the current multiline charts are done broke the base idea >>> of dimensions and mapping them to different columns in the data. So we are >>> changing the model. >>> >>> Tharik please send details. >>> >>> Thanks for the comments. Tharik, please think about them and let's chat. >>> >>> --Srinath >>> >>> On Tue, Dec 1, 2015 at 5:59 PM, Isuru Perera <[email protected]> wrote: >>> >>>> Hi, >>>> >>>> As Dunith mentioned, we need improvements in multi-line charts. Carbon >>>> Metrics uses the previous viz-grammar library [1]. >>>> >>>> Following are some feedback for multi-line chart. >>>> >>>> - Improve the way the tooltip is shown. Currently, we have to go to >>>> the exact data point to see the value in a tooltip. In addition, I >>>> prefer >>>> if the tooltip can show all values for the corresponding x-axis. >>>> - It's better if we can specify color for each line. If you look at >>>> [1], you can see that I have implemented custom check boxes to show/hide >>>> lines. If I hide the first line, the colors of all other lines are >>>> changed. >>>> - It'll be good if the chart itself can support show/hide lines. In >>>> that way, we don't have to write custom logic to show/hide lines. >>>> - Let user specify a some text for y-axis instead of "values" >>>> >>>> >>>> [1] https://docs.wso2.com/display/MB300/Using+JVM+Metrics >>>> >>>> On Fri, Oct 30, 2015 at 11:46 AM, Sriskandarajah Suhothayan < >>>> [email protected]> wrote: >>>> >>>>> +1 some simple form of showing a number should be there. >>>>> >>>>> Suho >>>>> >>>>> On Fri, Oct 30, 2015 at 10:25 AM, Dunith Dhanushka <[email protected]> >>>>> wrote: >>>>> >>>>>> Hi Suho, >>>>>> >>>>>> I was thinking replacing Arc with a Gauge since it'll be more useful >>>>>> for real-time usecases. IMO compared to Arc, gauge will be more realistic >>>>>> when visualizing fast moving data points. WDYT? >>>>>> >>>>>> Regards, >>>>>> Dunith >>>>>> >>>>>> On Thu, Oct 29, 2015 at 7:23 PM, Sriskandarajah Suhothayan < >>>>>> [email protected]> wrote: >>>>>> >>>>>>> >>>>>>> >>>>>>> On Thursday, October 29, 2015, Dunith Dhanushka <[email protected]> >>>>>>> wrote: >>>>>>> >>>>>>>> Hi Tharik, >>>>>>>> >>>>>>>> Good intiative! >>>>>>>> >>>>>>>> I'd like to add few comments. >>>>>>>> >>>>>>>> - Upgrade Vega version to 2.0 >>>>>>>> - Need to eliminate few shortcomings of the line chart. E.g Tooltip >>>>>>>> not displaying at sometimes. >>>>>>>> - Let advanced users to pass vega specifictions directly with the >>>>>>>> chart configuration. This needs to be discussed further. This will >>>>>>>> allow >>>>>>>> users to manipulate vega attributes directly like legend position, >>>>>>>> label >>>>>>>> font size etc. >>>>>>>> >>>>>>>> - Define standard methods like init(), draw() and update() for all >>>>>>>> chart types. Enforce chart developers to implement them so that those >>>>>>>> methods can be called by Vizgrammr at runtime. >>>>>>>> >>>>>>>> - Keep the main interface of vizg object simple. E.g >>>>>>>> vizg.draw("#canvas,chartConfig,dataTable) >>>>>>>> - Remove the arc chart type. >>>>>>>> >>>>>>> Why we need to remove arc type ? >>>>>>> It should work for real-time use cases >>>>>>> >>>>>>> Suho >>>>>>> >>>>>>>> >>>>>>>> It would be nice to improve the existing drill down capability of >>>>>>>> bar charts and also find out other chart types that supports drill >>>>>>>> down. >>>>>>>> >>>>>>>> Regards, >>>>>>>> Dunith >>>>>>>> >>>>>>>> >>>>>>>> On Wed, Oct 28, 2015 at 3:40 PM, Tharik Kanaka <[email protected]> >>>>>>>> wrote: >>>>>>>> >>>>>>>>> Hi All, >>>>>>>>> >>>>>>>>> At the moment we have moved igvis content to VizGrammar repository >>>>>>>>> [1]. We are going to redesign the architecture of igviz.js and improve >>>>>>>>> extensibility. First igviz name will be replaced as VizGrammar. >>>>>>>>> >>>>>>>>> Currently all the chart drawing logics are written in the igviz.js >>>>>>>>> and it will be a tedious process to add new chart types and update. >>>>>>>>> >>>>>>>>> For that we are expecting to create structure as follows where >>>>>>>>> each chart type code is in a separate JS file. These JS files follows >>>>>>>>> a >>>>>>>>> same structure when it comes to drawing, plotting and updating. If new >>>>>>>>> chart type is implemented, it needs to follow same structure and code >>>>>>>>> will >>>>>>>>> be in a separate JS file under charts directory. Meanwhile samples for >>>>>>>>> charts can be included the samples directory. >>>>>>>>> >>>>>>>>> |- lib >>>>>>>>> | |- vega.min.js >>>>>>>>> | |- d3.min.js >>>>>>>>> | >>>>>>>>> |- samples >>>>>>>>> | |- bar >>>>>>>>> | |- line >>>>>>>>> | . >>>>>>>>> | . >>>>>>>>> | |- scatter >>>>>>>>> | >>>>>>>>> |- charts >>>>>>>>> |- |- chart.js >>>>>>>>> |- |- chart.bar.js >>>>>>>>> |- |- chart.line.js >>>>>>>>> |- |- chart.area.js >>>>>>>>> |- |- chart.map.js >>>>>>>>> |- |- chart.table.js >>>>>>>>> |- |- chart.arc.js >>>>>>>>> |- |- chart.scatter.js >>>>>>>>> | >>>>>>>>> |- vizgrammar.js >>>>>>>>> |- vizgrammar.min.js >>>>>>>>> >>>>>>>>> >>>>>>>>> Finally chart JS files will be combined to create vizgrammar.js >>>>>>>>> and vizgrammar.min.js. >>>>>>>>> >>>>>>>>> [1] https://github.com/wso2/VizGrammar >>>>>>>>> >>>>>>>>> Regards, >>>>>>>>> -- >>>>>>>>> >>>>>>>>> *Tharik Kanaka* >>>>>>>>> >>>>>>>>> WSO2, Inc |#20, Palm Grove, Colombo 03, Sri Lanka >>>>>>>>> >>>>>>>>> Email: [email protected] | Web: www.wso2.com >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> -- >>>>>>>> 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> >>>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> >>>>>>> *S. Suhothayan* >>>>>>> Technical Lead & Team Lead of WSO2 Complex Event Processor >>>>>>> *WSO2 Inc. *http://wso2.com >>>>>>> * <http://wso2.com/>* >>>>>>> lean . enterprise . middleware >>>>>>> >>>>>>> >>>>>>> *cell: (+94) 779 756 757 <%28%2B94%29%20779%20756%20757> | blog: >>>>>>> http://suhothayan.blogspot.com/ >>>>>>> <http://suhothayan.blogspot.com/>twitter: >>>>>>> http://twitter.com/suhothayan <http://twitter.com/suhothayan> | >>>>>>> linked-in: >>>>>>> http://lk.linkedin.com/in/suhothayan >>>>>>> <http://lk.linkedin.com/in/suhothayan>* >>>>>>> >>>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> 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> >>>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> >>>>> *S. Suhothayan* >>>>> Technical Lead & Team Lead of WSO2 Complex Event Processor >>>>> *WSO2 Inc. *http://wso2.com >>>>> * <http://wso2.com/>* >>>>> lean . enterprise . middleware >>>>> >>>>> >>>>> *cell: (+94) 779 756 757 <%28%2B94%29%20779%20756%20757> | blog: >>>>> http://suhothayan.blogspot.com/ <http://suhothayan.blogspot.com/>twitter: >>>>> http://twitter.com/suhothayan <http://twitter.com/suhothayan> | linked-in: >>>>> http://lk.linkedin.com/in/suhothayan >>>>> <http://lk.linkedin.com/in/suhothayan>* >>>>> >>>>> _______________________________________________ >>>>> Architecture mailing list >>>>> [email protected] >>>>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture >>>>> >>>>> >>>> >>>> >>>> -- >>>> Isuru Perera >>>> Associate Technical Lead | WSO2, Inc. | http://wso2.com/ >>>> Lean . Enterprise . Middleware >>>> >>>> about.me/chrishantha >>>> Contact: +IsuruPereraWSO2 >>>> <https://www.google.com/+IsuruPereraWSO2/about> >>>> >>>> _______________________________________________ >>>> Architecture mailing list >>>> [email protected] >>>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture >>>> >>>> >>> >>> >>> -- >>> ============================ >>> Srinath Perera, Ph.D. >>> http://people.apache.org/~hemapani/ >>> http://srinathsview.blogspot.com/ >>> >>> _______________________________________________ >>> Architecture mailing list >>> [email protected] >>> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture >>> >>> >> >> >> -- >> >> *Tharik Kanaka* >> >> WSO2, Inc |#20, Palm Grove, Colombo 03, Sri Lanka >> >> Email: [email protected] | Web: www.wso2.com >> >> _______________________________________________ >> Architecture mailing list >> [email protected] >> https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture >> >> > > > -- > > *S. Suhothayan* > Technical Lead & Team Lead of WSO2 Complex Event Processor > *WSO2 Inc. *http://wso2.com > * <http://wso2.com/>* > lean . enterprise . middleware > > > *cell: (+94) 779 756 757 <%28%2B94%29%20779%20756%20757> | blog: > http://suhothayan.blogspot.com/ <http://suhothayan.blogspot.com/>twitter: > http://twitter.com/suhothayan <http://twitter.com/suhothayan> | linked-in: > http://lk.linkedin.com/in/suhothayan <http://lk.linkedin.com/in/suhothayan>* > > _______________________________________________ > Architecture mailing list > [email protected] > https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture > > -- *CD Athuraliya* Software Engineer WSO2, Inc. lean . enterprise . middleware Mobile: +94 716288847 <94716288847> LinkedIn <http://lk.linkedin.com/in/cdathuraliya> | Twitter <https://twitter.com/cdathuraliya> | Blog <https://cdathuraliya.wordpress.com/>
_______________________________________________ Architecture mailing list [email protected] https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
