var = new CanvasJS.Chart("", { fitInfo: { canvasComponentType: "Bar", canvasFld1: "", canvasFld2: "" }, animationEnabled: true, exportEnabled: true, theme: "light2", title:{ text: "", }, axisY2:{ interlacedColor: "rgba(1,77,101,.2)", gridColor: "rgba(1,77,101,.1)", title: "Number of Companies" }, data: [{ type: "bar", indexLabelFontSize: 16, dataPoints: [ ] }] }); .render(); enableCanvasFitOptions();