(axes: Axes, categories: string[], lines: PlotLine[] = [])
| 51 | } |
| 52 | |
| 53 | renderLines(axes: Axes, categories: string[], lines: PlotLine[] = []): LineModel[] { |
| 54 | return lines.map(({ value, color }) => { |
| 55 | const { offsetSize } = this.getPlotAxisSize(true); |
| 56 | const position = validXPosition({ |
| 57 | axisData: getPlotAxisData(true, axes) as LabelAxisData, |
| 58 | offsetSize, |
| 59 | value, |
| 60 | categories, |
| 61 | startIndex: this.startIndex, |
| 62 | }); |
| 63 | |
| 64 | return this.makeLineModel(true, position, { color }); |
| 65 | }); |
| 66 | } |
| 67 | |
| 68 | renderBands(axes: Axes, categories: string[], bands: PlotBand[] = []): RectModel[] { |
| 69 | const { offsetSize, anchorSize } = this.getPlotAxisSize(true); |
no test coverage detected