@pioneer-code/pioneer-charts 1.0.8 → 1.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,10 +1,10 @@
1
- import { IPcacChartConfig, IPcacData, PcacTickFormatEnum } from '../../core/chart.model';
1
+ import { IPcacChartConfig, IPcacData, PcacFormatEnum } from '../../core/chart.model';
2
2
  export interface IPcacBarHorizontalChartConfig extends IPcacChartConfig {
3
3
  domainMax: number;
4
4
  numberOfTicks: number;
5
5
  isStacked: boolean;
6
6
  thresholds: IPcacData[];
7
- tickFormat?: PcacTickFormatEnum;
7
+ tickFormat?: PcacFormatEnum;
8
8
  hideGrid?: boolean;
9
9
  hideAxis?: boolean;
10
10
  spreadColorsPerGroup?: boolean;
@@ -1,10 +1,10 @@
1
- import { IPcacChartConfig, IPcacData, PcacTickFormatEnum } from '../../core/chart.model';
1
+ import { IPcacChartConfig, IPcacData, PcacFormatEnum } from '../../core/chart.model';
2
2
  export interface IPcacBarVerticalChartConfig extends IPcacChartConfig {
3
3
  domainMax: number;
4
4
  numberOfTicks: number;
5
5
  isStacked: boolean;
6
6
  thresholds: IPcacData[];
7
- tickFormat?: PcacTickFormatEnum;
7
+ tickFormat?: PcacFormatEnum;
8
8
  hideGrid?: boolean;
9
9
  hideAxis?: boolean;
10
10
  spreadColorsPerGroup?: boolean;
@@ -1,5 +1,5 @@
1
1
  import { BaseType, Selection } from 'd3-selection';
2
- import { PcacTickFormatEnum } from './chart.model';
2
+ import { PcacFormatEnum } from './chart.model';
3
3
  import * as i0 from "@angular/core";
4
4
  export interface IPcacAxisBuilderConfig {
5
5
  svg: Selection<BaseType, {}, HTMLElement, any>;
@@ -7,8 +7,8 @@ export interface IPcacAxisBuilderConfig {
7
7
  xScale: any;
8
8
  yScale: any;
9
9
  numberOfTicks: number;
10
- yFormat?: PcacTickFormatEnum;
11
- xFormat?: PcacTickFormatEnum;
10
+ yFormat?: PcacFormatEnum;
11
+ xFormat?: PcacFormatEnum;
12
12
  hideYAxis?: boolean;
13
13
  hideXAxis?: boolean;
14
14
  }
@@ -14,8 +14,10 @@ export interface IPcacData {
14
14
  value: string | number;
15
15
  data: IPcacData[];
16
16
  }
17
- export declare enum PcacTickFormatEnum {
17
+ export declare enum PcacFormatEnum {
18
18
  None = "none",
19
19
  Percentage = "percentage",
20
- Minutes = "minutes"
20
+ Minutes = "minutes",
21
+ DateTime = "dateTime",
22
+ Fahrenheit = "fahrenheit"
21
23
  }
@@ -1,8 +1,8 @@
1
- import { IPcacData, PcacTickFormatEnum } from './chart.model';
1
+ import { IPcacData, PcacFormatEnum } from './chart.model';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class PcacTooltipBuilder {
4
4
  tooltip: any;
5
- showBarTooltip(event: MouseEvent, data: IPcacData, tickFormat?: PcacTickFormatEnum): void;
5
+ showBarTooltip(event: MouseEvent, data: IPcacData, valueFormat?: PcacFormatEnum, keyFormat?: PcacFormatEnum): void;
6
6
  hideTooltip(): void;
7
7
  private getBarTipData;
8
8
  static ɵfac: i0.ɵɵFactoryDeclaration<PcacTooltipBuilder, never>;
@@ -1,6 +1,7 @@
1
1
  import { Selection, BaseType } from 'd3-selection';
2
2
  import { ScaleLinear } from 'd3-scale';
3
3
  import { IPcacData } from '../core';
4
+ import { ScaleTime } from 'd3';
4
5
  import * as i0 from "@angular/core";
5
6
  export interface ILineAreaChartEffectsBuilderConfig {
6
7
  colors: string[];
@@ -8,8 +9,8 @@ export interface ILineAreaChartEffectsBuilderConfig {
8
9
  width: number;
9
10
  height: number;
10
11
  svg: Selection<BaseType, {}, HTMLElement, any>;
11
- x: ScaleLinear<number, number>;
12
- y: ScaleLinear<number, number>;
12
+ x: ScaleLinear<number, number> | ScaleTime<number, number, never>;
13
+ y: ScaleLinear<number, number> | ScaleTime<number, number, never>;
13
14
  }
14
15
  export declare class LineAreaChartEffectsBuilder {
15
16
  private config;
@@ -31,6 +31,7 @@ export declare class LineAreaChartBuilder extends PcacChart {
31
31
  private drawArea;
32
32
  private drawEffects;
33
33
  private drawDots;
34
+ private getXFormat;
34
35
  static ɵfac: i0.ɵɵFactoryDeclaration<LineAreaChartBuilder, never>;
35
36
  static ɵprov: i0.ɵɵInjectableDeclaration<LineAreaChartBuilder>;
36
37
  }
@@ -1,10 +1,14 @@
1
- import { IPcacChartConfig } from '../core/chart.model';
1
+ import { IPcacChartConfig, PcacFormatEnum } from '../core/chart.model';
2
2
  export interface IPcacLineAreaChartConfig extends IPcacChartConfig {
3
- domainMax: number;
4
- domainMin: number;
5
3
  isArea: boolean;
6
4
  enableEffects: boolean;
7
5
  numberOfTicks: number;
8
- hideGrid?: boolean;
9
- hideAxis?: boolean;
6
+ hideGrid: boolean;
7
+ hideAxis: boolean;
8
+ yFormat: PcacFormatEnum;
9
+ xFormat: PcacFormatEnum;
10
+ yDomainMax: number | string;
11
+ yDomainMin: number | string;
12
+ xDomainMin: number | string;
13
+ xDomainMax: number | string;
10
14
  }
package/package.json CHANGED
@@ -22,7 +22,7 @@
22
22
  "type": "git",
23
23
  "url": "https://github.com/PioneerCode/pioneer-charts"
24
24
  },
25
- "version": "1.0.8",
25
+ "version": "1.0.9",
26
26
  "license": "MIT",
27
27
  "peerDependencies": {
28
28
  "@angular/common": "^16.1.0",