Answer the question
In order to leave comments, you need to log in
How to set chart start to non-0?
<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/modules/exporting.js"></script>
<style type="text/css">
#container {
height: 400px;
width: 100px
}
</style>
<div id="container" class="chart_wrap"></div>
<script type="text/javascript">
Highcharts.chart('container', {
chart: {type: 'column'},
title: {text: ''},
subtitle: {text: ''},
xAxis: {type: 'category'},
yAxis: {title: {text: ' '}},
legend: {enabled: false},
plotOptions: {
series: {
borderWidth: 0,
dataLabels: {
enabled: true,
format: '{point.y:.1f}%'
}
},
line: {animation: false},
series: {animation: false}
},
tooltip: { crosshairs: false,},
series: [{
name: 'Brands',
colorByPoint: true,
data: [{
name: 'NAME',
y: 10,
color:"green",
drilldown: 'NAME'
}]
}],
});
</script>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question