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
- How do you change the colour of each category within a highcharts column chart?
- giving a javascript number fixed width after decimal while remaining a number
- JSON.parse: unexpected non-whitespace character after JSON data in javascript
- Highcharts Spiderweb chart xAxis labels disappear on long label name
- HighCharts chart export (screenshot download) does not display Navigator graph
- HighChart.js : How to group nodes in organization chart
- How to combine x-axis labels in highcharts
- Plotting data using highcharts piechart in flask web application
- Highcharts - column color different from color in legend
- Highstock - insert HTML link inside flag tooltip
- How to make z-index for area lines in highcharts?
- How can I make milestone lines with a GANTT chart using the highcharts library?
- Several Series with the same xAxis data in HighChart
- R Highchart // grouped categories in x axis
- How can I read an Excel File with JavaScript (without ActiveXObject)
- Highchart - Custom Images for Labels by using html
- Javascript datepicker date defaulting to 01-01-1970 HighCharts
- Setting the top value for a highcharts chart
- httphandler cannot find axd of Highcharts
- How Can we display a legend in high chart that contains apostrophe
- Highcharts skip non-provided steps in a series
- Highstock, split tooltip and opposite xAxis?
- Time display at x axis instead of date display in highstock
- How to show xAxis label in tooltip in a Highcharts area chart?
- Highcharts tooltip is always the same
- Highcharts How To Select Column From Stack
- Boosting area chart makes it looking like a bar chart
- Highcharts MTD (Month to Date) and QTD (Quater to Date) implementation
- Is it possible to load Highcharts options from a file?
- Update Of Chart Series Colors Fails When Drilled Into Chart