Smoothed Line Chart
<h2>Customizable line tension</h2> Line series has two very easy settings that can control how line smoothing algorithm works: <code>tensionX</code> and <code>tensionY</code>. This allows tailoring smoothed line to suit your needs and data. [amcharts2_button href="https://www.amcharts.com/docs/v4/concepts/axes/axis-ranges/"]More about smoothed lines[/amcharts2_button] <h2>Axis ranges</h2> Axis ranges is another powerful feature of amCharts 4. Besides other uses, it allows defining a range on any axis. Any visual property of the series, that falls within this specific range, will be overridden with specific values. [amcharts2_button href="https://www.amcharts.com/docs/v4/concepts/axes/axis-ranges/"]More about axis ranges[/amcharts2_button]
by navinleon
HTML
<script src="https://www.amcharts.com/lib/4/core.js"></script>
<script src="https://www.amcharts.com/lib/4/charts.js"></script>
<script src="https://www.amcharts.com/lib/4/themes/animated.js"></script>
<div style="width:100%;height:200px">
<div id="chartdiv"></div>
</div>
CSS
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
background-color:#fff !important;
}
#chartdiv {
width: 100%;
height: 500px;
}
JavaScript
/**
* ---------------------------------------
* This demo was created using amCharts 4.
*
* For more information visit:
* https://www.amcharts.com/
*
* Documentation is available at:
* https://www.amcharts.com/docs/v4/
* ---------------------------------------
*/
// Themes begin
am4core.useTheme(am4themes_animated);
// Themes end
// Create chart instance
var chart = am4core.create("chartdiv", am4charts.XYChart);
chart.paddingRight = 20;
chart.legend = new am4charts.Legend();
// Add data
// Add data
chart.data =...