Open pankajd1990 opened 5 years ago
Try increasing categoryAxesSettings.minHorizontalGap
.
Set it to 100 for example. Default is 75.
not working i put above line in category axis setting
` categoryAxesSettings: {
minPeriod:"fff",
groupToPeriods:["fff"],
color:"black",
axisColor:"black",
minHorizontalGap:100,
axisAlpha:1,
dateFormats:[{"period":"fff","format":"JJ:NN:SS.QQQ"},{"period":"ss","format":"JJ:NN:SS"},{"period":"mm","format":"JJ:NN"},{"period":"hh","format":"JJ:NN"}],
equalSpacing:true,
gridPosition: "start",
gridAlpha: 1,
tickPosition: "start",
tickLength: 5,
inside:false,
fontSize:15,
autoWrap:true,
}`
Well then try a bigger number :)
I am working on AM chart which showing data per milliseconds .but when i move scroll left to right,labels overlaps on each other. this is my code `{ type: "stock", theme: "none",
categoryAxis:{
showFirstLabel:true, showLastLabel:true,
gridPosition: "start", gridAlpha: 1,
tickPosition: "start",
tickLength: 20, autoGridCount :true, centerLabels:true, fontSize:15, glueToTheEnd:true, zoomOutOnDataSetChange:true, dateFormats:[{"period":"fff","format":"JJ:NN:SS.QQQ"},{"period":"ss","format":"JJ:NN:SS"},{"period":"mm","format":"JJ:NN"},{"period":"hh","format":"JJ:NN"}],
}, valueAxesSettings :{ gridThickness:1,
axisColor:"#FFFFFF", showLastLabel:true, axisThickness:1, inside:false, axisAlpha:1, unitPosition:"left", tickLength:1,
labelRotation:-90, }, categoryAxesSettings: { minPeriod:"fff", groupToPeriods:["fff"], color:"#FFFFFF", axisColor:"#FFFFFF",
axisAlpha:1,
dateFormats:[{"period":"fff","format":"JJ:NN:SS.QQQ"},{"period":"ss","format":"JJ:NN:SS"},{"period":"mm","format":"JJ:NN"},{"period":"hh","format":"JJ:NN"}],
equalSpacing:true, gridPosition: "start", gridAlpha: 1, tickPosition: "start", tickLength: 5, inside:false, fontSize:15,
} } `