Thank you for your time in advance. The example shows how to make a pie chart to provide the query result. In this example, the pie chart was used to show the result. I am wondering if everyone has tweaked this example code and used the "Line Chart" to show your query result. Please share your web application and opinions.
It took a bit of searching, but I think I found what you are looking for in the Concepts tab of the JS API documentation. In the sample you provided, the type object within the mediaInfos array is set to "piechart". You will need to change this to "linechart", and then modify the value fields.
Thank you for the information. I will follow your instruction. I am wondering if you or anyone have made the line chart in your web application. Please share your information.