Skip to content

Instantly share code, notes, and snippets.

@kristw
Created August 17, 2020 06:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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