Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const chart = new ChartView()
.bottomAxis("time")
.leftAxis("linear")
.bottomGesture(true)
.leftDomainPadding([0.1, 0.1])
.topGutter(0)
.rightGutter(0)
.bottomGutter(20)
.leftGutter(-1)
.domainColor("#4a4a4a")
.tickMarkColor("#4a4a4a")
.font("12px sans-serif")
.textColor("#4a4a4a");
canvas.append(chart);
const futureColor = Color.rgb('#6c6c6c').alpha(0.2);
const plot0 = new AreaGraphView()
.fill(futureColor);
chart.addPlot(plot0);
const plot1 = new LineGraphView()
.stroke(futureColor)
.strokeWidth(1);
chart.addPlot(plot1);
const plot2 = new LineGraphView()
.stroke("#00a6ed")
.strokeWidth(1);
chart.addPlot(plot2);
this._chartChildView[key] = {
chartVew: chart,