Skip to content

Commit

Permalink
Changed scattergl to scatter to fix styleguide
Browse files Browse the repository at this point in the history
  • Loading branch information
bmingles committed Nov 3, 2023
1 parent c8250fd commit 9a9bf88
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/chart/src/MockChartModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class MockChartModel extends ChartModel {
name: 'SCTR',
x: series.x,
y: series.y,
type: 'scattergl',
type: 'scatter',
mode: 'markers',
hoverinfo: 'skip',
marker: {
Expand Down Expand Up @@ -106,7 +106,7 @@ class MockChartModel extends ChartModel {
name: 'Trendline <br>R<sup>2</sup> = 0.91',
x: series.x,
y: series.l,
type: 'scattergl',
type: 'scatter',
mode: 'line' as PlotData['mode'],
hoverinfo: 'skip',
line: {
Expand Down Expand Up @@ -135,7 +135,7 @@ class MockChartModel extends ChartModel {
name: 'error',
x: (series.x as Datum[]).concat((series.x as Datum[]).slice().reverse()), // winding for x values, that slice just clones so reverse doesn't apply inplace
y: errory,
type: 'scattergl',
type: 'scatter',
mode: 'line' as PlotData['mode'],
hoverinfo: 'skip',
fill: 'toself', // there's some ordering bug with scattergl where if the areas traces are ordered after the lines they don't render
Expand All @@ -153,7 +153,7 @@ class MockChartModel extends ChartModel {
name: 'LINE',
x: series.x,
y: series.y,
type: 'scattergl',
type: 'scatter',
mode: 'line' as PlotData['mode'],
hoverinfo: 'x+y+text+name' as PlotData['hoverinfo'],
line: {
Expand Down

0 comments on commit 9a9bf88

Please sign in to comment.