Configure.

This commit is contained in:
Jim Myers 2019-03-01 14:52:23 -05:00
parent 68796ce9bb
commit 3c8fd0f326
4 changed files with 23 additions and 9 deletions

View File

@ -73,18 +73,11 @@
symbol: "BTC",
metric: "fcas",
type: "line",
yAxis: 0
},
{
name: "BTC Dev",
symbol: "BTC",
metric: "dev",
type: "line",
yAxis: 1
}
],
rangeSelector: {
enabled: false
enabled: true
}
});

View File

@ -34,6 +34,7 @@ export type Props = {
class Chart extends Component<Props> {
static defaultProps: Partial<Props> = {
axisTitles: [],
mode: "light",
exportingEnabled: false
};
@ -81,6 +82,7 @@ class Chart extends Component<Props> {
},
legend: {
enabled: series && series.length > 1,
itemStyle: { color: textColor },
itemHoverStyle: { color: textColor }
},
@ -166,8 +168,9 @@ class Chart extends Component<Props> {
}
render() {
const { mode } = this.props;
return (
<div className={css.wrapper}>
<div className={css[mode]}>
<CustomLinks
widget="chart"
api={this.props.api}

View File

@ -1,3 +1,19 @@
.wrapper text {
font-size: 12px;
}
.wrapper a {
color: #20b7fc;
}
.dark text,
.light text {
font-size: 12px;
}
.dark a {
color: #20b7fc;
}
.light a {
color: #2d57ed;
}

View File

@ -1,3 +1,5 @@
// This file is automatically generated.
// Please do not change this file!
export const dark: string;
export const light: string;
export const wrapper: string;