tsur / canvasjs

39 stars 40 forks source link

ReferenceError: getFontHeightInPixels is not defined #5

Open romablog opened 7 years ago

romablog commented 7 years ago

chart not drawing... error in console my code here: var data = scope.instance.Data.map(function (dataItem) { return {x: dataItem.Key, y: dataItem.Value}; }); var chart = new CanvasJS.Chart("chartContainer", { // animationEnabled: true, title:{ fontSize: 12 }, axisY: { title: "People count" }, axisX: { title: "Weeks" }, data: [ { toolTipContent: "{y} people", type: "splineArea", markerSize: 0, color: "rgba(0,100,0, 1)", dataPoints: data } ] }); chart.render();

mainstreetmark commented 7 years ago

me too. node + webpack.