Skip to content

Commit

Permalink
Added jsdoc and removed commented out code
Browse files Browse the repository at this point in the history
  • Loading branch information
bmingles committed Jan 16, 2024
1 parent b511d20 commit 6658266
Showing 1 changed file with 5 additions and 15 deletions.
20 changes: 5 additions & 15 deletions packages/chart/src/ChartUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1872,6 +1872,11 @@ class ChartUtils {
return axis;
}

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

Expand All @@ -1887,21 +1892,6 @@ class ChartUtils {
lake_color,
river_color,
/* eslint-disable camelcase */

/* Used by `getColorwayFromTheme()` */
// colorway,

/* Used by `makeLayoutAxis()` */
// gridcolor,
// linecolor,
// zerolinecolor,

// Used by `getPlotlyErrorBars()`
// error_band_line_color,

/* Used by `addStylingToSeriesData()` */
// ohlc_increasing,
// ohlc_decreasing,
} = theme;

const layout: Partial<Layout> = {
Expand Down

0 comments on commit 6658266

Please sign in to comment.