-
Notifications
You must be signed in to change notification settings - Fork 263
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Info about MapChart
constructor is missing in docs
#128
Comments
@cvasseng Looks like Additionally, adding map JS (like
It works fine when the map file is added like: const cdnMaps = [
"maps/{{version}}/modules/map.js",
"mapdata/countries/gb/gb-all.js"
]; |
|
I've updated the readme to say About the map collection - I think we need to add prompting or something on which to include. I'm thinking maybe asking the user to supply an (optional) location for a JSON file with an array of collections to include if building with maps support. There's too many of them to prompt for each, and it needs to be compatible with automated deployments too (e.g. needs to be possible to set it via. env variables or something similar). It could also be possible to set up a |
BTW - as a workaround for the mapcollection, you should be able to put the collection URL's in the |
@cvasseng
The file name is from command used: |
@cvasseng please reopen this, still an issue for us. Could you please take a look? |
@jerang @cvasseng Required change in funs.push(function (next) {
// If we've allready fetched the required script, just return it.
if (cachedScripts[fullURL]) {
console.log((' using cached fetch for ' + fullURL).gray);
scriptBody += cachedScripts[fullURL] + ';';
return next();
}
console.log(' ', (fullURL).gray);
request(fullURL, function (error, response, body) {
if (error) {
if (optionals[scriptOriginal]) {
console.log(` ${script} is not available for v${version}`.gray)
return next();
}
return next(error, fullURL);
}
if (body.trim().indexOf('<!DOCTYPE') === 0) {
if (optionals[scriptOriginal]) {
console.log(` ${script.substr(script.lastIndexOf('/') + 1)} is not available for v${version}, skipped..`.yellow);
return next();
}
return next(404, script);
}
cachedScripts[fullURL] = body;
scriptBody += body + ';';
next();
});
}); so lines change are: After those changes adding maps to const cdnMaps = [
"maps/{{version}}/modules/map.js",
"https://code.highcharts.com/mapdata/countries/us/us-all.js",
"https://code.highcharts.com/mapdata/countries/gb/gb-all.js",
"https://code.highcharts.com/mapdata/custom/world.js",
"https://code.highcharts.com/mapdata/custom/africa.js"
]; |
@KacperMadej that did the trick! Thanks!! |
The fix for this is now live on NPM (2.0.15). |
Please give example how to generate map chart png file. |
The An additional I am just adding the info here in case someone has a different usage or finds a problem with doubled |
https://github.com/highcharts/node-export-server/blame/master/README.md#L75
The text was updated successfully, but these errors were encountered: