Comments (12)
For adding series, this issue can be worked around by adding the series options to the chart options object in an event handler. See http://jsfiddle.net/qX6Kf/2/
chart: {
renderTo: 'container',
// start workaround
events: {
addSeries: function(series) {
this.options.series.push(series.options);
}
}
// end workaround
},
from highcharts.
...and with series.remove:
from highcharts.
Added feature where exported image reflects updated data in the chart. Closed by 9bd4aad.
from highcharts.
The same problem applies for setCategories() method. New categories don't appear on exported charts.
Reporter at: http://highslide.com/forum/viewtopic.php?f=9&t=7052#p34282
from highcharts.
Same problem with setTitle(). Click the Set Title link and see the title change on the chart. Then click export button and you see it renders the old title without the new title and subtitle.
from highcharts.
I needed the ability to export categories that were added after initial chart creation by setCategories(), so I added the some code into the loop that sets the extremes of the axis to also loop through and set the categories of the axis.
// reflect axis extremes in the export
each(['xAxis', 'yAxis'], function (axisType) {
each(chart[axisType], function (axis, i) {
var axisCopy = chartCopy[axisType][i],
extremes = axis.getExtremes(),
userMin = extremes.userMin,
userMax = extremes.userMax;
if (userMin !== UNDEFINED || userMax !== UNDEFINED) {
axisCopy.setExtremes(userMin, userMax, true, false);
}
// addition to include categories that were set by setCategories
if (axis.categories) {
var categories = [];
each(axis.categories, function (category, i) {
categories.push(category);
});
axisCopy.setCategories(categories, true);
}
});
});
from highcharts.
Demo for the setCategories case: http://jsfiddle.net/highcharts/WMtv6/
- Click the set categories button
- Click Export chart button
- Observe that the downloaded image doesn't reflect the changes.
from highcharts.
Demo after fix: http://jsfiddle.net/highcharts/WMtv6/1/
from highcharts.
Excuse me,
i have Highcharts 2.1.9 version. The problem that have posted "chubbard "
[Same problem with setTitle(). Click the Set Title link and see the title change on the chart. Then click export button and you see it renders the old title without the new title and subtitle.
You have not resolve this problem?
from highcharts.
Here's a little workaround that you can use:
http://jsfiddle.net/highcharts/39C3U/22/
from highcharts.
I have found an issue with the workaround. If you click "Set Title" more than once, you lose the formatting on the chart title. I am also seeing this in my application when trying to use the workaround. Does anyone have any thoughts on avoiding this?
from highcharts.
I've updated the workaround, and also fixed the issue in the core.
from highcharts.
Related Issues (20)
- Dashboards: Cannot leave edit mode after removing cell HOT 4
- Dashboards: The settings dialog for a cell stays visible after being closed HOT 2
- Dashboards: Cannot go back to original size HOT 3
- Show data labels for all levels in Treemap series. HOT 2
- Group small leaf nodes in Treemap series. HOT 1
- Tooltip interactivity with 'outside' property and accessibility module HOT 1
- Map zoomTo break map navigation HOT 1
- I want option for area chart in Stock Tools GUI HOT 1
- Highmaps legend moves when zooming in the map
- Locked cells/rows in Dashboard HOT 3
- Docs demo for stock tools' clipped HOT 1
- `plotOptions` for specified series are not applied when using `setOptions` HOT 2
- `negativeFillColor` missing note about `series.zones`
- Performance degradation with 11.3.0 version HOT 2
- Can not remove chart with areasplinerange series while hovering HOT 3
- Mouse wheel zoom functionality not working HOT 3
- Venn diagram - Uncaught Error: f(a) and f(b) must have opposite signs. HOT 2
- Highcharts accessibility for event click() is missing HOT 1
- Scroll or fit all for packed bubble chart HOT 2
- Minor bugs in Live Weather demo
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from highcharts.