I am trying to implement react-vis in my project. I need to show data based on date. I am using tickFormat for it but it is showing same date two times in x-axis.I am adding few lines of my code here.
<XYPlot
width={1140}
height={440}
>
<LineMarkSeries
lineStyle={{stroke: '#e0e0e0'}}
markStyle={{stroke: '#6dc6c1'}}
style={{
strokeWidth: '2px'
}}
strokeStyle="solid"
data={[
{
x: Date.parse("05/05/2019"),
y: 0
},
{
x: Date.parse("05/12/2019"),
y: 12
},
{
x: Date.parse("05/13/2019"),
y: 16
}
]}
/>
<XAxis
attr="x"
attrAxis="y"
orientation="bottom"
tickFormat={function tickFormat(d){return
moment(d).format("MMM DD")}}
tickLabelAngle={0}
/>
<YAxis />
</XYPlot>