cancel
Showing results for 
Search instead for 
Did you mean: 

Trend Chart Using JS View

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Ivan,

Thank you so much, I will try this way.

Regards,

Payel

Ivan-Mirisola
Product and Topic Expert
Product and Topic Expert
0 Kudos

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