How do I use chart

I want to make a line chart with chart, But can’t figure out how to use chart.So what do you do to make a line graph

In v1.2 (will be released still this year) there will be a full featured chart widget. Until that please use the current chart widget as a place holder and configure it from code. (I.e. add the required settings after calling ui_init())