Browse Source

remove unused options

remove-unused-methods
vargburz 5 months 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']
```
- `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.
```
{

5
src/models/options.ts

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

4
src/types.ts

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

Loading…
Cancel
Save