JSFiddle - React, Tailwind, and code Playground

by satyat

HTML

<script src="https://static.fusioncharts.com/code/latest/fusioncharts.js"></script>
<script src="http://static.fusioncharts.com/code/latest/fusioncharts.charts.js"></script>
<script src="https://static.fusioncharts.com/code/latest/fusioncharts.charts.js"></script>
<!-- ZoomLine Chart showing unique website visits for last year. 

Zoom across a data range by dragging mouse on plots, and compare two sections of data using pin feature. 

Condensed data format for ZoomLine Chart has been used in this example.
 -->
<div id="chart-container">FusionCharts will render here</div>

JavaScript

FusionCharts.ready(function () {
    var visitChart = new FusionCharts({
        type: 'zoomline',
        renderAt: 'chart-container',
        width: '600',
        height: '400',
        dataFormat: 'json',
        dataSource: {
            "chart": {
                "caption": "Version comparison",
                
                "paletteColors": "#0075c2,#1aaf5d",
                "captionFontSize": "14",
                "subcaptionFontSize": "14",
                "subcaptionFontBold": "0",
                "showBorder": "0",
                "bgColor": "#ffffff",
                "baseFont": "Helvetica Neue,Arial",
                "showCanvasBorder": "0",
                "showShadow": "0",
                "showAlternateHGridColor": "0",
                "canvasBgColor": "#ffffff",
                "yaxisname": "Unique Visitors",
                "xaxisname": "Date",
                "yaxisminValue": "800",
                "yaxismaxValue": "1400",
                "forceAxisLimits" : "1",
                "pixelsPerPoint": "0",
                "pixelsPerLabel": "30",
                "lineThickness": "1",
                "compactdatamode" : "1",
                "dataseparator" : "|",
                "labelHeight": "30",                
                "scrollheight": "10",
                "flatScrollBars": "1",
                "scrollShowButtons": "0",
                "scrollColor": "#cccccc",
                "legendBgAlpha": "0",
                "legendBorderAlpha": "0",
                "legendShadow": "0",
                "legendItemFontSize": "10",
                "legendItemFontColor": "#666666"                
            },
			"categories": [{
				"category":...