score:3
put this function in your document ready function below is a code for changing highcharts print prototype and just for the patch or to make it work put rangeselector option in your exporting and set it to false as mentioned below you can set it to your needs in future
highcharts.wrap(highcharts.chart.prototype, 'print', function (proceed) {
var applymethod = function (whattodo, margin) {
this.extratopmargin = margin;
this.resetmargins();
this.setsize(this.container.clientwidth , this.container.clientheight , false);
this.settitle(null, { text: 'set title here' :'});
this.rangeselector.zoomtext[whattodo]();
$.each(this.rangeselector.buttons, function (index, button) {
button[whattodo]();
});
};
if (this.rangeselector) {
var extramargin = this.extratopmargin;
applymethod.apply(this, ['hide', null]);
var returnvalue = proceed.call(this);
applymethod.apply(this, ['show', extramargin]);
this.settitle(null, { text: '' });
} else {
return proceed.call(this);
this.settitle(null, { text: '' });
this.yaxis[0].setextremes();
} }
});
and in chart option set this (change it according to you need to, i am just putting my code for reference )
exporting: {
scale: 1,
sourcewidth: 1600,
sourceheight: 900,
chartoptions: {
rangeselector: {
enabled: false
},
}
score:16
you can define this parameter in exporting.
http://api.highcharts.com/highcharts#exporting.chartoptions
exporting:{
chartoptions:{
title: {
text:'aaaaa'
}
}
},
Source: stackoverflow.com
Related Query
- highcharts : set title on exporting
- How to dynamically set title in Pie Chart of Highcharts
- How to set the url of moment.min.js to local js file when highcharts exporting png file
- Set color of highcharts renderer path title
- Set file type dynamically when click on exporting menu in highcharts using chart.exportChart function
- Calling Highcharts export to jpeg but the source is https and exporting is http (security warnings issued by browser)
- Highcharts code with same set of code/data works in PHP but does not work in JSfiddle
- Set Additional Data to highcharts series
- How to set Highcharts chart maximum yAxis value
- set different colors for each column in highcharts
- Programmatically change a chart title in highcharts
- Set highcharts y-axis min value to 0, unless there is negative data
- Change HighCharts axis title
- how to set the interval of points on Y - Axis highcharts
- Highcharts set x-axis categories
- Highcharts How to Show Loading Animation At Set Data
- Highcharts - Exporting Module
- Highcharts Pie Chart.How to set labels in two lines
- Change title when drilldown in Highcharts
- Javascript Highcharts v3.0.5 - How to hide Y Axis Title when using multiple Y Axis
- Highcharts - How to set custom colors for the series
- Highcharts - set maximum range for yAxis but keep axis dynamic within that range
- how to set dynamic data in highcharts
- set width of chart, highcharts
- How to set a static minimum value for axes in Highcharts
- Highcharts - how to properly update series[0].data and yAxis title of a VUMeter?
- Highcharts set legend height
- set color of grouped stacked column in highcharts
- Highcharts - yAxis logarithmic scale and allowDecimals set to false not seeming to have any effect
- Set x-axis range in highcharts
More Query from same tag
- Highmaps get() function on a secondary series
- In highcharts, the data in the legend is overlapping incase of data less than 10000
- combine series in legend
- Highcharts: Logarithmic y-axis with seconds, minutes, hours and days
- Highcharts renderer in websharper
- Using a JSON Object in HighCharts
- Datapoints in Xrange highchart are not uniformly getting aligned to the center
- Equal distance between points highcharts
- Is there a possibility to display regions in a detailed map (instead of cities)?
- Customize Highchart Map's legend type and color
- FillPattern after drillDown to countries on Highchart-react
- Highchart heatmap grouped category plugin styling issues
- How to load data in highcharts from text
- how do you call getJSON inside the highchart section
- highcharts mouse over/out events fired in wrong timing
- Performance issue adding series through loop in Highcharts
- Highcharts buttons with different menuitems not working
- Reload Highchart with AJAX more smoothly
- Highcharts yAxis labels inside plot area and left padding
- Highcharts bar graph doesn't show yaxis values
- Highcharts incorrect pertange calculation
- Position next and previous buttons on far right and left side of the Highchart
- Highchart Java export image
- How to use Highcharts in typescript and react
- Highcharts loading data from a HTML table with a title
- Printing a highchart to show data for all the points
- Dynamic chart using Highcharts with data from MySQL database
- Highcharts dynamic property updates when zooming
- How to fire click event in moxie highcharts
- Is there a option in highcharts like the 'ordinal' in highstock?