Sunday, May 19, 2024
 Popular · Latest · Hot · Upcoming
56
rated 0 times [  63] [ 7]  / answers: 1 / hits: 18124  / 9 Years ago, tue, june 9, 2015, 12:00:00

I am trying not to show the labels of x-axis, which in this case are:
7.5, 8.0, 8.5, 9.0 and so on.



This is what I have tried so far:



<div id=chartdiv></div>

var chart = AmCharts.makeChart(chartdiv, {
theme: light,
type: serial,
dataProvider: [{
name: 3s,
startTime: 8,
endTime: 11,
color: #FF0F00
}],
valueAxes: [{
axisAlpha: 0,
gridAlpha: 0.1
}],
startDuration: 1,
graphs: [{
balloonText: <b>[[category]]</b><br>starts at [[startTime]]<br>ends at [[endTime]],
colorField: color,
fillAlphas: 0.8,
lineAlpha: 0,
openField: startTime,
type: column,
valueField: endTime
}],
rotate: true,
columnWidth: 1,
categoryField: name,
});


JSFiddle Demo


More From » amcharts

 Answers
91

Use labelsEnabled on your value axis:



valueAxes: [{
axisAlpha: 0,
gridAlpha: 0.1,
labelsEnabled: false
}],


Here's the updated fiddle.


[#66269] Sunday, June 7, 2015, 9 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
richardaydenc

Total Points: 148
Total Questions: 125
Total Answers: 98

Location: Seychelles
Member since Mon, Jun 28, 2021
3 Years ago
;