Skip to content

Commit 6658266

Browse files
committed
Added jsdoc and removed commented out code
#101
1 parent b511d20 commit 6658266

1 file changed

Lines changed: 5 additions & 15 deletions

File tree

packages/chart/src/ChartUtils.ts

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1872,6 +1872,11 @@ class ChartUtils {
18721872
return axis;
18731873
}
18741874

1875+
/**
1876+
* Creates a plotly layout object based on a given theme.
1877+
* See https://plotly.com/javascript/reference/layout/
1878+
* @param theme The theme to use for the layout
1879+
*/
18751880
makeDefaultLayout(theme: ChartTheme): Partial<Layout> {
18761881
const { dh } = this;
18771882

@@ -1887,21 +1892,6 @@ class ChartUtils {
18871892
lake_color,
18881893
river_color,
18891894
/* eslint-disable camelcase */
1890-
1891-
/* Used by `getColorwayFromTheme()` */
1892-
// colorway,
1893-
1894-
/* Used by `makeLayoutAxis()` */
1895-
// gridcolor,
1896-
// linecolor,
1897-
// zerolinecolor,
1898-
1899-
// Used by `getPlotlyErrorBars()`
1900-
// error_band_line_color,
1901-
1902-
/* Used by `addStylingToSeriesData()` */
1903-
// ohlc_increasing,
1904-
// ohlc_decreasing,
19051895
} = theme;
19061896

19071897
const layout: Partial<Layout> = {

0 commit comments

Comments
 (0)