Skip to content
Advertisement

how to make a line trend chart from the given data

I have a histogram which is being generated from one of the dataframe column. But I want to make line similar to histogram.

I tried to extract histogram data & plot a line chart but didn’t worked.

JavaScript

This code generate a histogram, but I need a line chart which shows the trend

Advertisement

Answer

This shows the step histogram line and a line plot on it passing from the center of each bin.

JavaScript

enter image description here

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement