We are using node.js to generate server side charts.
There are only a few minor issues and we had to modify the source code for this.
any possibility to include the changes or point us to right direction to avoid having to modify the code?
Here are the changes (highstock version 1.1.5)
UserAgent detection
userAgent = navigator.userAgent,
isIE = /msie/i.test(userAgent) && !win.opera,
docMode8 = doc.documentMode === 8,
isWebKit = /AppleWebKit/.test(userAgent),
isFirefox = /Firefox/.test(userAgent),
isNode = /Node.js/.test(userAgent),
SVG_NS = 'http://www.w3.org/2000/svg',
hasSVG = isNode || !!doc.createElementNS && !!doc.createElementNS(SVG_NS, 'svg').createSVGRect,
(had to force hasSVG)
Line 5633
// the label is created on init - now move it into place
if (label && !isNaN(x)) {
if (isNode && labelOptions.x === null) labelOptions.x = 0;
if (isNode && labelOptions.y === null) labelOptions.y = 0;
Using node the labelOptions.y is null or NaN (why ???)
line 6951
if (isNode && isNaN(axisTitleMargin))
axisTitleMargin = 33;
Hardcode the margin (for now)
Thanx for your help