Skip to content

Commit

Permalink
Update format examples (#171)
Browse files Browse the repository at this point in the history
  • Loading branch information
krissalvador27 committed Aug 22, 2019
1 parent c0d2791 commit a5c3473
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const AreaBarChartExample = (props) => {
return <div>
<XYPlot width={500} height={320}>
<XAxis /><YAxis />
<XAxis /><YAxis labelFormats={['0.1f']} />
<AreaBarChart
data={_.range(15)}
x={d => Math.sin(d / 10) * 10}
Expand Down
2 changes: 1 addition & 1 deletion docs/src/docs/AreaBarChart/examples/RatesByAge.js.example
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const RatesByAge = (props) => {
<h3 style={{textAlign: 'center'}}>US Smoking Rates by Age Group</h3>
<XYPlot width={500} height={320} yDomain={[0, .2]}>
<XAxis title="Age" ticks={[18, 25, 45, 65]} nice={false}/>
<YAxis title="Cigarette Use" tickCount={4} labelFormat={'%'} />
<YAxis title="Cigarette Use" tickCount={4} labelFormat={'.1%'} />
<AreaBarChart
data={[
{ageMin: 18, ageMax: 25, rate: .13},
Expand Down

0 comments on commit a5c3473

Please sign in to comment.