JSFiddle - React, Tailwind, and code Playground

by Robert Tome

HTML

<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/1.0.2/Chart.js"></script>
<canvas id="barChart" width="600" height="400"></canvas>

JavaScript

// Chartjs sample bar chart with some columns shown differently 
var ChartOptions = {
    canvasBackgroundColor: 'rgba(255,255,255,1.00)',
    barValueSpacing: 10,
    scaleLineWidth: 1,
    scaleFontFamily: "sans-serif",
    responsive: false,
    animation: false,
    maintainAspectRatio: false,
    scaleIntegersOnly: true,
    scaleShowGridLines: false,
    scaleBeginAtZero: true,
    scalejsFontSize: 14,
    scaleFontColor: "#AAAAAA",
    scaleOverride: true,
    showTooltips: true,
    tooltipFillColor: "#333333",
    tooltipFontFamily: "sans-serif",
    tooltipFontColor: "#fff",
    tooltipTemplate: "<%if (label){%><%=label%> <%}%>(<%= value %> points)",
    scaleSteps: 49745845,
    // scaleStepWidth: 1,
    // scaleStartValue: 0,
    scaleGridLineColor: "#1f253d"
};

var ChartData = {
    labels: ["X", "Y", "Z"],
    datasets: [{
        fillColor: "rgba(52,152,219,1)",
        strokeColor: "rgba(52,152,219,0.5)",
        pointColor: "rgba(52,152,219,1)",
        pointStrokeColor: "rgba(255,255,255,1.00)",
        data: [0, 12000, 497458451]
    }]
};

var myBarChart = new Chart(document.getElementById("barChart").getContext("2d")).Bar(ChartData, ChartOptions);

// myBarChart.update();