This issue https://github.com/recharts/recharts/issues/612 was never properly resolved and I am running into the same problem. dateFormat is not defined and I'm getting an error when I try and replicate the code. Please address.
@patientplatypus I think you misunderstood that issue.
dateFormat in the issue you listed above is a function that you are required to define yourself.
example:
```
tickFormatter={formatXAxis}
/>
// Example date formatter
function formatXAxis(tickItem) {
// If using moment.js
return moment(tickItem).format('MMM Do YY')
}
```
just follow @JacquiManzi 's demo
<XAxis dataKey="name" tickFormatter={this.formatXAxis}/>
formatXAxis = (tickItem) => {
// do something to format tick label
}
Most helpful comment
@patientplatypus I think you misunderstood that issue.
dateFormatin the issue you listed above is a function that you are required to define yourself.example:
dataKey="x"
```
tickFormatter={formatXAxis}
/>
function formatXAxis(tickItem) {
// If using moment.js
return moment(tickItem).format('MMM Do YY')
}
```