Skip to content

Commit

Permalink
update numeral and docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Delany committed Aug 8, 2017
1 parent 5b30323 commit cc1274c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions docs/src/docs/AreaBarChart/examples/AreaBarChart.js.example
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const AreaBarChartExample = (props) => {
getXEnd={d => Math.sin((d + 1) / 10) * 10}
getY={d => Math.cos(d / (Math.PI))}
/>
</XYPlot>;
</XYPlot>
<XYPlot width={320} height={500}>
<XAxis /><YAxis />
<AreaBarChart
Expand All @@ -18,7 +18,7 @@ const AreaBarChartExample = (props) => {
getY={d => Math.sin(d / 10) * 10}
getYEnd={d => Math.sin((d + 1) / 10) * 10}
/>
</XYPlot>;
</XYPlot>
</div>
};

Expand Down
8 changes: 5 additions & 3 deletions docs/src/docs/Histogram/examples/Histogram.js.example
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
const HistogramExample = (props) => {
const randomNormalArr = _.times(1000, d3.randomNormal(0, 1)).concat(_.times(1000, d3.randomNormal(3, 0.5)));
const domain = {x: [-4, 5], y: [0, 200]};

return <div>
<div>
<XYPlot margin={{left: 40, right: 8}} width={700} height={300}>
<XYPlot margin={{left: 40, right: 8}} domain={domain} width={450} height={300}>
<XAxis /><YAxis />
<Histogram
data={randomNormalArr} getValue={null}
Expand All @@ -12,16 +13,17 @@ const HistogramExample = (props) => {
</div>
<div>
<XYPlot
domain={domain}
margin={{left: 40, right: 8}}
width={700} height={40}
width={450} height={40}
showGrid={false}
showLabels={false}
showTicks={false}
>
<ScatterPlot
data={randomNormalArr}
getX={null}
getY={() => Math.random()}
getY={() => Math.random()*200}
pointRadius={1}
/>
</XYPlot>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"lodash": "^4.5.1",
"measure-text": "0.0.4",
"moment": "^2.10.6",
"numeral": "^1.5.3",
"numeral": "^2.0.6",
"prop-types": "^15.5.10",
"react-addons-shallow-compare": "^15.6.0"
},
Expand Down

0 comments on commit cc1274c

Please sign in to comment.