diff --git a/package.json b/package.json index 9e5edc65757..fb8759a384a 100644 --- a/package.json +++ b/package.json @@ -66,7 +66,7 @@ "gl-line3d": "^1.1.0", "gl-mat4": "^1.1.2", "gl-mesh3d": "^1.2.0", - "gl-plot2d": "^1.1.9", + "gl-plot2d": "^1.2.0", "gl-plot3d": "^1.5.1", "gl-pointcloud2d": "^1.0.0", "gl-scatter2d": "^1.2.0", diff --git a/src/plots/gl2d/scene2d.js b/src/plots/gl2d/scene2d.js index 6b0c8262fe6..3fe459b6131 100644 --- a/src/plots/gl2d/scene2d.js +++ b/src/plots/gl2d/scene2d.js @@ -249,9 +249,8 @@ proto.computeTickMarks = function() { for(var j = 0; j < 2; ++j) { for(var i = 0; i < nextTicks[j].length; ++i) { - // TODO add support for '\n' in gl-plot2d, - // For now, replace '\n' with ' ' - nextTicks[j][i].text = convertHTMLToUnicode(nextTicks[j][i].text + '').replace(/\n/g, ' '); + // coercing tick value (may not be a string) to a string + nextTicks[j][i].text = convertHTMLToUnicode(nextTicks[j][i].text + ''); } } diff --git a/test/image/baselines/gl2d_date_axes.png b/test/image/baselines/gl2d_date_axes.png index 22f47afcb01..f303ac30b05 100644 Binary files a/test/image/baselines/gl2d_date_axes.png and b/test/image/baselines/gl2d_date_axes.png differ