Note that there are some explanatory texts on larger screens.

plurals
  1. POhighcharts line not fully plotted
    text
    copied!<p>I have a column chart combined with a line drawing across the chart. When decreasing the width of the chart container to a value smaller than 357px the horizontal line is only drawn half way instead of the full width.</p> <pre><code>chart = new Highcharts.Chart({ chart: { renderTo: 'chartcontainer', defaultSeriesType: 'column', borderRadius:0, marginRight: 22, marginBottom: 140 }, title: { text: 'test norm', align: 'left' }, xAxis: [{ title: { text: 'x', style: { } }, categories: ['2008','2009','2010','2011','2012'], labels: { style: { } } }, { //secondary xAxis for range and norm values gridLineWidth: 0, labels:{ enabled:false }, lineWidth:0, tickWidth:0, opposite: true, minPadding:0, maxPadding:0 } ], yAxis: { title: { text: 'y', style: { } }, labels: { style: { } } }, legend: { layout: 'vertical', align: 'left', verticalAlign: 'bottom', width:700, borderRadius: 0, shadow:false, floating:true, borderWidth: 0 }, navigation: { buttonOptions: { enabled: false } }, tooltip: { borderRadius: 0, borderWidth: 1, backgroundColor: '#FFFFFF', shadow: false, style: { font: 'bold 11px Arial, Verdana, sans-serif', fontWeight: 'bold' }, formatter: function() { return '&lt;b&gt;'+ this.x +'&lt;/b&gt;&lt;br/&gt;'+ this.series.name +': '+ this.y +'&lt;br/&gt;'; } }, plotOptions: { column: { dataLabels: { enabled: false }, shadow: false } }, series: [{ name: 'A', shadow: false, data: [8,2,8,4,6] },{ name: 'B', shadow: false, data: [1,4,2,3,4] },{ name: 'C', shadow: false, data: [4,16,8,12,16] },{ name: 'E', shadow: false, data: [8,4,6,8,2] },{ type:'line', name:'Norm', data:[ { y:10.000000, x:0.000000, dataLabels: { enabled: false, align: 'left', formatter:function(){return 'Norm: ' + this.y;}, style: {fontWeight:'bold'} }, }, { y:10.000000, x:1.000000, dataLabels: { enabled: true, align: 'right', formatter:function(){return 'Norm: ' + this.y;}, style: {fontWeight:'bold'} }, } ], color: '#01A1EB', lineWidth:1, dashStyle:'Solid', shadow: { opacity:0.1 }, enableMouseTracking:false, marker:{enabled:false}, xAxis:1, showInLegend: true </code></pre> <p>}] });</p> <p>See my jsfiddle example here: The line fully drawn:</p> <p><a href="http://jsfiddle.net/ramon_ackermann/WwSbT/7/" rel="nofollow">http://jsfiddle.net/ramon_ackermann/WwSbT/7/</a></p> <p>The line only half way: <a href="http://jsfiddle.net/ramon_ackermann/WwSbT/8/" rel="nofollow">http://jsfiddle.net/ramon_ackermann/WwSbT/8/</a></p> <p>Any ideas what might cause this?</p> <p>Cheers.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload