JSFiddle - React, Tailwind, and code Playground
Bullet MicoChart
by ashishsingh
HTML
<script src="https://www.amcharts.com/lib/3/amcharts.js"></script>
<script src="https://www.amcharts.com/lib/3/serial.js"></script>
<script src="https://www.amcharts.com/lib/3/plugins/export/export.min.js"></script>
<link rel="stylesheet" href="https://www.amcharts.com/lib/3/plugins/export/export.css" type="text/css" media="all" />
<script src="https://www.amcharts.com/lib/3/themes/light.js"></script>
<div id="chartdiv"></div>
CSS
body {
background: white;
}
#chartdiv {
width : 200px;
height : 85px;
font-size : 11px;
}
JavaScript
var chart = AmCharts.makeChart( "chartdiv", {
"type": "serial",
"theme": "light",
"categoryField": "category",
"rotate": true,
"startDuration": 1,
"categoryAxis": {
"gridPosition": "start",
"position": "left",
"gridPosition": "start",
"axisAlpha": 0,
"gridAlpha": 0,
"position": "left"
},
"columnSpacing": 0,
"columnWidth": 1,
"autoMargins": false,
"marginLeft": 0,
"marginRight": 0,
"marginTop": 0,
"marginBottom": 0,
"graphs": [{
"clustered": false,
"columnWidth": 0.3,
"fillAlphas": 0.25,
"fillColors": "green",
"lineAlpha": 0.25,
"stackable": false,
"type": "column",
"valueField": "limit"
},{
"clustered": false,
"columnWidth": 0.3,
"fillAlphas": 1,
"lineColor": "green",
"stackable": false,
"type": "column",
"valueField": "bullet"
},{
"columnWidth": 0.5,
"lineColor": "#000000",
"lineThickness": 3,
"noStepRisers": true,
"stackable": false,
"type": "step",
"valueField": "limit"
}],
"valueAxes": [ {
"axisAlpha": 0,
"gridAlpha": 0,
"minimum": 0
} ],
"dataProvider": [ {
"category": "Evaluation",
"excelent": 20,
"good": 20,
"average": 20,
"poor": 20,
"bad": 20,
"limit": 78,
"full": 100,
"bullet": 65
} ],
"creditsPosition": "bottom-right"
} );