Skip to content

Commit

Permalink
Enable rescaling on sample app
Browse files Browse the repository at this point in the history
  • Loading branch information
keithluchtel committed Oct 31, 2024
1 parent c1b97d7 commit c2e8709
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions example/app/pan-zoom.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,15 @@ export default function PanZoomPage() {
data={DATA}
xKey="day"
yKeys={["highTmp"]}
axisOptions={{
font,
yAxis={[
{
font: font,
enableRescaling: true,
},
]}
xAxis={{
enableRescaling: true,
font: font,
}}
transformState={state}
onChartBoundsChange={({ top, left, right, bottom }) => {
Expand Down

0 comments on commit c2e8709

Please sign in to comment.