Browse Source

remove unused options

remove-unused-methods
vargburz 1 year ago
parent
commit
509a79d93d
  1. 17
      README.md
  2. 5
      src/models/options.ts
  3. 4
      src/types.ts

17
README.md

@ -64,23 +64,6 @@ margin = {
['red', 'blue', 'green'] ['red', 'blue', 'green']
``` ```
- `timeInterval`: interval in minutes (max value = 60) affecting grid and x-axis ticks.
- `tickFormat`: config to control the axes ticks format.
```js
{
xAxis: string; // x-axis time format (see [d3-time-format](https://github.com/d3/d3-time-format#locale_format) }
xTickOrientation: TickOrientation; // horizontal, diagonal or vertical orientation
}
```
for example:
```js
{
xAxis: '%Y-%m-%d %H:%M',
xTickOrientation: TickOrientation.DIAGONAL
}
```
- `labelFormat`: labels for axes. - `labelFormat`: labels for axes.
``` ```
{ {

5
src/models/options.ts

@ -90,11 +90,6 @@ export const CORE_DEFAULT_OPTIONS: Options = {
crosshair: DEFAULT_CROSSHAIR_OPTIONS, crosshair: DEFAULT_CROSSHAIR_OPTIONS,
renderLegend: true, renderLegend: true,
margin: DEFAULT_MARGIN, margin: DEFAULT_MARGIN,
// remove options below
renderTicksfromTimestamps: false,
timeInterval: {
timeFormat: TimeFormat.MINUTE
},
eventsCallbacks: {}, eventsCallbacks: {},
} }

4
src/types.ts

@ -34,10 +34,6 @@ export type Options = {
axis?: AxesOptions; axis?: AxesOptions;
grid?: GridOptions; grid?: GridOptions;
crosshair?: CrosshairOptions; crosshair?: CrosshairOptions;
timeInterval?: {
timeFormat?: TimeFormat;
count?: number;
};
zoomEvents?: ZoomEvents; zoomEvents?: ZoomEvents;
renderTicksfromTimestamps?: boolean; renderTicksfromTimestamps?: boolean;
renderLegend?: boolean; renderLegend?: boolean;

Loading…
Cancel
Save