Hi @ll000.zhang - welcome to the forums. I've found the best place to start with charts is this excellent tutorial post Quickly implementing PlotlyJS examples with Chart from @Kabirdas. The overall trick is that you need to create a JavaScript Query that generates the Plotly JSON for the layout.
Give it a shot and let us know if you get stuck along the way. Happy building!