I want to create a stacked bar chart with no spacing between the bars. It doesn't appear that spacing has any effect on this.
Here is my chart definition:
{
dataSource:
{
transport:
{
read:
{
url: "JSONComfort.aspx?t=" + SessionToken + "&c=" + ClientID + "&s=" + Space,
dataType: "json"
}
},
sort:
{
field: "Temperature",
dir: "asc"
}
},
title:
{
text: "Comfort Feedback"
},
valueAxis:
{
min: 0,
max: 100
},
chartArea:
{
background: "#E9E9EB"
},
seriesDefaults:
{
spacing: 0,
stack: true
},
series:
[
{
field: "Cold",
name: "Cold",
color: "blue"
},
{
field: "Cool",
name: "Cool",
color: "lightblue"
},
{
field: "Comfortable",
name: "Comfortable",
color: "green"
},
{
field: "Warm",
name: "Warm",
color: "orange"
},
{
field: "Hot",
name: "Hot",
color: "red"
}
],
categoryAxis:
{
field: "Temperature",
labels:
{
step: 2
}
}
}
Thanks/Anker
Here is my chart definition:
{
dataSource:
{
transport:
{
read:
{
url: "JSONComfort.aspx?t=" + SessionToken + "&c=" + ClientID + "&s=" + Space,
dataType: "json"
}
},
sort:
{
field: "Temperature",
dir: "asc"
}
},
title:
{
text: "Comfort Feedback"
},
valueAxis:
{
min: 0,
max: 100
},
chartArea:
{
background: "#E9E9EB"
},
seriesDefaults:
{
spacing: 0,
stack: true
},
series:
[
{
field: "Cold",
name: "Cold",
color: "blue"
},
{
field: "Cool",
name: "Cool",
color: "lightblue"
},
{
field: "Comfortable",
name: "Comfortable",
color: "green"
},
{
field: "Warm",
name: "Warm",
color: "orange"
},
{
field: "Hot",
name: "Hot",
color: "red"
}
],
categoryAxis:
{
field: "Temperature",
labels:
{
step: 2
}
}
}
Thanks/Anker