diff --git a/package.json b/package.json index 4849574..3403772 100755 --- a/package.json +++ b/package.json @@ -6,7 +6,8 @@ "scripts": { "build": "webpack --config build/webpack.prod.conf.js && webpack --config build/webpack.dev.conf.js", "dev": "webpack --watch --config build/webpack.dev.conf.js", - "test": "echo \"Error: no test specified\" && exit 1" + "test": "echo \"Error: no test specified\" && exit 1", + "update-core": "yarn up @chartwerk/core && yarn up @chartwerk/core@latest" }, "repository": { "type": "git", diff --git a/src/index.ts b/src/index.ts index 9faf806..e9279ce 100755 --- a/src/index.ts +++ b/src/index.ts @@ -1,4 +1,4 @@ -import { ChartwerkPod, VueChartwerkPodMixin, TickOrientation, TimeFormat, AxisFormat } from '@chartwerk/core'; +import { ChartwerkPod, VueChartwerkPodMixin, TimeFormat, AxisFormat } from '@chartwerk/core'; import { BarTimeSerie, BarOptions, RowValues } from './types'; import { findClosest } from './utils'; @@ -409,4 +409,4 @@ export const VueChartwerkBarChartObject = { } }; -export { BarTimeSerie, BarOptions, TickOrientation, TimeFormat, AxisFormat }; +export { BarTimeSerie, BarOptions, TimeFormat, AxisFormat }; diff --git a/src/models/bar_options.ts b/src/models/bar_options.ts new file mode 100644 index 0000000..e69de29 diff --git a/src/models/bar_series.ts b/src/models/bar_series.ts new file mode 100644 index 0000000..e69de29 diff --git a/src/types.ts b/src/types.ts index 389c28e..0ac94be 100755 --- a/src/types.ts +++ b/src/types.ts @@ -1,10 +1,10 @@ -import { TimeSerie, Options } from '@chartwerk/core'; +import { Serie, Options } from '@chartwerk/core'; export type BarSerieParams = { matchedKey: string; - colorFormatter: (serie: BarTimeSerie) => string; + colorFormatter: (serie: BarSerie) => string; } -export type BarTimeSerie = TimeSerie & Partial; +export type BarSerie = Serie & Partial; export type BarOptionsParams = { renderBarLabels: boolean; stacked: boolean; diff --git a/yarn.lock b/yarn.lock index 9d90ea0..f3ac31c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -20,12 +20,12 @@ __metadata: linkType: soft "@chartwerk/core@npm:latest": - version: 0.5.4 - resolution: "@chartwerk/core@npm:0.5.4" + version: 0.6.3 + resolution: "@chartwerk/core@npm:0.6.3" dependencies: d3: ^5.7.2 lodash: ^4.14.149 - checksum: 0d686409377d6880f0012db3d9c1e1910cf3660885ac13196dabe93f57eca53984cf52dcf781b2876373fe9efc7b9d0209117cbcd811c50892b1de4f38a4a37f + checksum: bb804b1a2339fc19857e5caa07d16ed78fb1b0739878d3f7488e9f8661667ed78ada3a63afd15206bd4210746b50916b253e98f077451cc8d899728ecf08ba50 languageName: node linkType: hard