Skip to content

Commit fd65106

Browse files
committed
Updated chart def so that font for axis ticks can be configured.
1 parent 2c7c5a5 commit fd65106

File tree

3 files changed

+17
-12
lines changed

3 files changed

+17
-12
lines changed

package-lock.json

+8-8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "data-forge-plot",
3-
"version": "0.6.0",
3+
"version": "0.6.2",
44
"description": "Plotting API for use with Data-Forge.",
55
"main": "build/index.js",
66
"types": "build/index.d.ts",
@@ -35,8 +35,8 @@
3535
},
3636
"homepage": "https://github.com/data-forge/data-forge-plot#readme",
3737
"dependencies": {
38-
"@data-forge-plot/apex": "0.2.0",
39-
"@data-forge-plot/chart-def": "^1.4.0",
38+
"@data-forge-plot/apex": "0.2.1",
39+
"@data-forge-plot/chart-def": "^1.4.1",
4040
"@data-forge/serialization": "^1.0.0",
4141
"inflate-template": "^1.1.6",
4242
"opn": "^5.5.0",

src/chart-def.ts

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
import { AxisType, ChartType, IAxisLabelConfig, ILegendConfig, IDataLabels } from "@data-forge-plot/chart-def";
2+
import { AxisType, ChartType, IAxisLabelConfig, ILegendConfig, IDataLabels, IAxisTicksConfiguration } from "@data-forge-plot/chart-def";
33

44
/**
55
* Configures an axis of the chart.
@@ -10,6 +10,11 @@ export interface IAxisConfig {
1010
* Label for the axis.
1111
*/
1212
label?: string | IAxisLabelConfig;
13+
14+
/**
15+
* Configuration for axis tick marks.
16+
*/
17+
ticks?: IAxisTicksConfiguration;
1318
}
1419

1520
/**

0 commit comments

Comments
 (0)