Skip to Content
avatar image
Former Member

Trend Chart Using JS View

Hi,

I want to create a trend chart using js view not xml and the chart will be looking like something below, can anyone help?

Thanks & Regards,

Payel

chart.png (81.3 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Jan 02 at 11:02 PM

    Hi Payel,

    You should use component VizFrame to draw the line chart. You can use the sample for further reference.

    Check this github example for JS View and how to set the data on the graph.

    However, I would encourage you to change your view type to XML instead. It is easier to understand how the html components are going to be placed on the screen and html properties are more readable than JSView. The setting the data set is what really matters and that's done via controller in JavaScript anyway.

    Regards,
    Ivan

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 04 at 08:58 AM

    Hi Ivan,

    Thank you so much, I will try this way.

    Regards,

    Payel

    Add comment
    10|10000 characters needed characters exceeded