score:1
Accepted answer
it seems that highcharts do not permit to have a pointrange
greater than the max value in x
or the minrange
value.
you can fix that by doing :
$(function () {
$('#container').highcharts({
title: {
text: 'pointrange is too small'
},
yaxis: {
min: 0,
max: 1
},
xaxis: {
min: 0,
minrange: 10000
//^^^^^^^^^^^
},
legend: {
enabled: false
},
credits: {
enabled: false
},
series: [{
data: [
[0, 1],
[215, 1],
// middle of spline data omitted for brevity
[8189, 0.007198560287942413],
[8404, 0],
[8620, 0]
],
type: 'spline',
marker: {
enabled: false
},
zindex: 1
}, {
data: [0.5],
type: 'column',
pointinterval: 10000,
pointpadding: 0.01,
grouppadding: 0,
borderwidth: 0,
shadow: false,
pointplacement: 'between',
pointrange: 10000,
zindex: 0,
minpointlength: 3,
datalabels: {
enabled: true,
inside: true,
color: 'white',
formatter: function () {
return 'misplaced'
}
}
}]
})
})
since you set pointinterval
at 10000, i think you can do the same thing with the minrange
value ?
score:1
can't you also set a xaxis max of, say, 10500? wouldn't that allow the column to expand to 10k?
Source: stackoverflow.com
Related Query
- HighCharts pointRange trancating width. Is this a HighCharts bug or am I missing something?
- Highcharts displays series names but missing data points from json source
- How to make highcharts default to 0 for missing data
- Highcharts - issue about full chart width
- Highcharts width exceeds container div on first load
- Maximum bar width in Highcharts column charts
- HighCharts full width issue
- Fixed y-axis label width in Highcharts
- missing value in highcharts line graph results in no line, just points
- Highcharts Solid Gauge Width
- set width of chart, highcharts
- Automatically join missing data gaps in Highcharts JS
- Get Highcharts width
- Highcharts equivalent of this Raphael.js chart demo -- possible?
- Highcharts bars are half missing after drillup
- Bug with highcharts pie-basic percent
- Stop HighCharts increasing width of line on hover
- Column width in Highcharts when combined with spline
- How to fix "Property 'type' is missing in type but required in type 'SeriesXrangeOptions'" in angular highcharts module
- "pointAttr" attribute is missing in Highcharts library 5.0.0
- Highcharts spans beyond bootstrap column width when implemented as an angular directive
- Bug in Highcharts after exiting the full screen mode
- Exporting HighCharts chart specific height width
- Highcharts missing first date label on xAxis
- Highcharts hover bug - with video to demonstrate
- Using PhantomJS to create HighCharts grahps server side for use in PDF creation (PHP) - results in exit code 11 from PHPs exec();
- Highcharts - Bar - Setting the X axis width and the chart area width to be constant
- Setting Highcharts x axis label's width
- Highcharts scatter plot with variable line width
- Highcharts - Global configuration with common code and unique data & Headings
More Query from same tag
- highcharts export png files
- How do I set the highchart gantt headers as fixed when I scroll vertically
- how can i scroll my gnatt highcharts using mouse wheel
- Remove [Object] label in highchart
- Is it possible to draw Highcharts PlotBand and/or PlotLines lower/higher then xAxis/top tick?
- Matomo: report for single url
- convert highcharts to image for Persian language
- How to add multple plotlines for yaxis using highcharts?
- High chart items missing in mobile view
- Highchart is not resizing dynamically when used as a angular directive
- Highcharts - how to export chart with a custom legend?
- Highstock Navigator and xAxis show numbers instead of dates
- Need to link URL in HighChart
- How to open new chart to the adjacent <div> on bar click in highchart
- jQuery - Div doesn't fit page content
- Share tooltip between all series types
- HighCharts - Negative $ currency values
- highcharts type bubble with static Y-axis list
- Converted PHP code that built an array to JS and now highcharts doesn't work - what did I do wrong?
- Populate highcharts data using MySQL
- HIGHCHARTS: drilldown.js changes pie chart label color
- Highcharts chart going blank on compare : 'percent' and type: 'arearange'
- Node JS, Highcharts Memory usage keeps climbing
- Highcharts: Logarithmic chart with Y Axis [100, 99.9, 99, 90, 0]
- How to hide highChart plotLine label until mouseover?
- How to add a second series in highcharts
- setting highcharts title in a modal
- bug in highcharts histogram regarding number of bins
- How to remove border radius when use Highcharts renderer.rect function
- highcharts: Set same spacing between bars