-
Notifications
You must be signed in to change notification settings - Fork 8
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
Integrating with Node js Application on windows #11
Comments
@vibhuti12 |
@vibhuti12
(But you presumably already did extract the files, as you are reading Then add the bin folder to your PATH. Make sure you have no other
I hope this will help you! |
Did you try running this on windows ? I just want to be sure it works on Also, the example provided on the github repository of any charts, did you |
The GTK+ bundle link is not available. |
@vibhuti12 |
@Shestac92 I have completed the steps till gtk3-demo and that seems to be working fine. But the error for rsvglib still persists. I have added path to the rsvglib.exe in the Path as well. I am assuming we need to do something to add it to node modules. Did you do something to add it to npm ? Error: This is the error my program says when I'm running it. |
@vibhuti12 |
Hi @Shestac92. When I run my app with the cmd everthing works well. When windows runs my app from the task scheduler I got the error Any ideas why? |
@Jucesr |
@Shestac92 When I create the windows task I got the error message. It is the same source code. I believe it has something with scheduler not being able to find the path to some library use by GM. const fs = require('fs')
const path = require('path')
// Require JSDOM Class.
const JSDOM = require('jsdom').JSDOM
// Create instance of JSDOM.
const jsdom = new JSDOM('<body><div id="container"></div></body>', {runScripts: 'dangerously'})
// Get window
const window = jsdom.window
// require anychart and anychart export modules
const anychart = require('anychart')(window)
const anychartExport = require('anychart-nodejs')(anychart)
var chart = anychart.column();
chart.bounds(0, 0, 800, 600);
chart.title('Example')
chart.container('container');
let char_data_set = anychart.data.set([
["Red", 1],
["Blue", 2]
])
let chart_serie = char_data_set.mapAs({x: 0, value: 1})
chart.column(chart_serie)
chart.draw();
anychartExport.exportTo(chart, 'jpeg').then(function(image) {
fs.writeFile(path.join(__dirname, 'example.jpeg'), image, function(fsWriteError) {
if (fsWriteError) {
console.log(fsWriteError);
} else {
console.log('Complete');
}
});
}, function(generationError) {
console.log(generationError);
}); |
I have installed rsvg and imagemgick but still when I run the application it says
Warning! Please install imagemagick utility. (https://www.imagemagick.org/script/binary-releases.php)
Warning! Please install rsvglib utility. (https://github.com/AnyChart/AnyChart-NodeJS)
Error: Stream yields empty buffer
Is there anything else that needs to be done ?
The text was updated successfully, but these errors were encountered: