JSFiddle - React, Tailwind, and code Playground
by meetravi
HTML
<div id="container" style="height: 400px; min-width: 600px"></div>
<script type="text/javascript" src="http://www.highcharts.com/js/testing-stock.js"></script>
<script type="text/javascript" src="http://www.highcharts.com/samples/data/usdeur.js"></script>
JavaScript
$(function() {
var chart = new Highcharts.StockChart({
chart: {
renderTo: 'container'
},
credits: {
enabled:false
},
scrollbar: {
barBackgroundColor: 'gray',
barBorderRadius: 7,
barBorderWidth: 0,
buttonBackgroundColor: 'silver',
buttonBorderWidth: 0,
buttonArrowColor: 'red',
buttonBorderRadius: 7,
rifleColor: 'red',
trackBackgroundColor: 'white',
trackBorderWidth: 1,
trackBorderColor: 'silver',
trackBorderRadius: 7
},
rangeSelector: {
buttonTheme: { // styles for the buttons
fill: 'white',
stroke: '#AAA',
style: {
color: '#039',
fontWeight: 'bold'
},
states: {
hover: {
fill: 'white'
},
select: {
fill:'red',
style: {
color: 'black'
}
}
}
},
inputStyle: {
color: '#039',
fontWeight: 'bold'
},
labelStyle: {
color: 'silver',
fontWeight: 'bold'
},
selected: 1
},
navigator: {
series: {
color: 'orange'
},
handles: {
backgroundColor: 'yellow',
borderColor: 'red'
}
},
series: [{
name: 'USD to EUR',
data: usdeur,
color:'red'
}]
});
});