score:1
Accepted answer
so, you just want it to show as normal with 0 at the coordiante root? no reversed
needed?
document.addeventlistener('domcontentloaded', function () {
highcharts.chart('container', {
chart: {
type: 'bar',
//marginleft: 150
},
xaxis: {
type: 'category',
title: {
text: null
},
max: 25,
//min: 0,
reversed:false,
tickpositions : [9,3,0]
//ticklength: 1
},
yaxis: {
reversed: false,
min: 0,
max: 10,
title: {
text: 'votes',
align: 'high'
}
},
legend: {
enabled: false
},
credits: {
enabled: false
},
series: [{
name: 'votes',
data: [
[0, 10],
[3, 10],
[9, 10],
],
datalabels: {
//enabled: true,
color: '#333',
//inside: true
}
}]
});
});
<script src="https://code.highcharts.com/highcharts.js"></script>
<div id="container" style="height: 300px"></div>
Source: stackoverflow.com
Related Query
- How to sort the yaxis in descending order if tickpositions in highcharts are used?
- Why are the labels for my opposite yaxis in Highcharts not showing up?
- how to display 2 same highcharts without duplicate the code
- Highcharts - how to do a responsive pie chart when the texts of the labels are long
- How do I dynamically change the yAxis min, max and tickInterval in HighCharts
- Highcharts how to align two charts yAxis on the same line
- How to configure highcharts so that all the curves are always displayed / highlighted?
- How to center the yAxis title in Highcharts
- How to set Highcharts xAxis position on the yAxis zero value (negative/positive chart)?
- highcharts how to make x and y axis starting on the same zero using categories on yAxis
- how do you set the yaxis values in highcharts
- How do you change the height value when more items are added to highcharts dynamically?
- How can i place the Highcharts yAxis categories inside the chart?
- How can I reverse the series order of a pyramid chart in Highcharts
- How can I put xAxis in highcharts starting in the horizontal line when all values are in 0?
- How can I get HighCharts column chart to scale the yAxis to not have so much whitespace?
- How can I sort the stacked bar charts in Highcharts by the sum of positive response?
- Decimals on yAxis are not being displayed, even if that same code works on highcharts jsfiddle
- How to modify the code so that Highcharts graph does not cover fixed navigation bar at the top of the page?
- How do I make a Highcharts timeline where the labels don't overlap and none are hidden?
- Highcharts multiple yAxis, the second yAxis labels are not showing but the title is
- how can I use rangeselector and navigation in highcharts in the given code
- How to update the HighCharts title using drill-up when there are multiple charts on same page?
- How to know the highcharts version used in angular2-highcharts
- Highcharts Heatmap yAxis with 2 categories. How to show both of them in the tooltip?
- Highcharts pie/bar combo. How to load json and how are the data series expressed
- How to get highcharts dates in the x axis?
- HighCharts - How can I turn off the points?
- How do you change the colour of each category within a highcharts column chart?
- How to set Highcharts chart maximum yAxis value
More Query from same tag
- R Highcharter: Highlight/unhighlight a bar in a bar chart by clicking
- Create multiple vertical plotlines on click and drag each of the plotline. Developed in Angular 6 and Highcharts
- How to change Time Zone in Angular2-HighCharts?
- Highchart Column with Drilldown using MySQL
- Javascript relative time 24 hours ago etc as time
- Highcharts options overwriting issue
- Highcharts, type: 'mapbubble' causes an error 17
- How to create a legend for bar colors in a Highcharts bar chart
- Multipane axis not aligning on highcharts
- Highcharts setData not working when using same array reference
- highchart legend multiple position ? first legend left and 2nd legend right show in a chart
- testing that a json can be rendered as a highchart
- Highcharts, detect if point is first in stack
- Highcharts Point Value Disappearing
- Highcharts legends are overlapping when i change language to arabic
- Highcharts in R: sort xAxis in Line Chart
- Setting the top value for a highcharts chart
- Highcharts 3D scatter points not showing names in tooltips
- Wordpress plugin : Yop Poll with pie chart
- Using a function for x value
- Revert theme to default
- Highcharts.js - Event when any point is clicked
- Highcharts custom xAxis label
- Highchart : How to set different step on each xaxis label?
- Array issue in rails and highcharts
- ECharts how to set different symbol for different marklines in one chart
- Highcharts - Column chart customization
- Highcharts - Exporting Module
- get access to chart-object in highchart
- Highcharts custom text right to left export