docs: function drawSeriesLines(series, ctx, plotOffset, plotWidth, plotHeight, drawSymbol, getColorOrGradient) {
              ctx.save();
              ctx.translate(plotOffset.left, plotOffset.top);
              ctx.lineJoin = "round";
  
              if (series.lines.dashes && ctx.setLineDash) {
                  ctx.setLineDash(series.lines.dashes);
              }
  
              var datapoints = {
                  format: series.datapoints.format,
                  points: series.datapoints.points,
                  pointsize: series.datapoints.pointsize
              };
  
              if (series.decimate) {
                  datapoints.points = series.decimate(series, series.xaxis.min, series.xaxis.max, plotWidth, series.yaxis.min, series.yaxis.max, plotHeight);
              }
  
              var lw = series.lines.lineWidth;
  
              ctx.lineWidth = lw;
              ctx.strokeStyle = series.color;
              var fillStyle = getFillStyle(series.lines, series.color, 0, plotHeight, getColorOrGradient);
              if (fillStyle) {
                  ctx.fillStyle = fillStyle;
                  plotLineArea(datapoints, series.xaxis, series.yaxis, series.lines.fillTowards || 0, ctx);
              }
  
              if (lw > 0) {
                  plotLine(datapoints, 0, 0, series.xaxis, series.yaxis, ctx);
              }
  
              ctx.restore();
          }