Skip to content

Instantly share code, notes, and snippets.

@kristw
Created August 17, 2020 06:12
Show Gist options
  • Save kristw/2ef9a4e797c0f50181af3723e703279a to your computer and use it in GitHub Desktop.
Save kristw/2ef9a4e797c0f50181af3723e703279a to your computer and use it in GitHub Desktop.
<VictoryChart
theme={VictoryTheme.material}
domainPadding={{ x: 25 }}
scale={{ x: "time" }}
>
<VictoryAxis tickFormat={(t) => `${t.getDate()}/${t.getMonth()}`}/>
<VictoryAxis dependentAxis/>
<VictoryCandlestick
candleColors={{ positive: "#5f5c5b", negative: "#c43a31" }}
data={sampleDataDates}
/>
</VictoryChart>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment