admin管理员组文章数量:1026989
I am unable to render datetime chart without weekends. How can one do it?
Here is sample code (/):
$('#container').highcharts({
xAxis: {
type: "datetime",
ordinal: true,
dateTimeLabelFormats: {
day: '%a'
}
},
series: [{
data: [
[1375221600000, 180.45999999999998],
[1375308000000, 144.368],
[1375394400000, 108.27599999999998],
[1375653600000, 72.184],
[1375740000000, 36.092],
[1375826400000, 0]
]
}]
});
As you can see, I am trying "ordinal" option from highstocks. You can see in highcharts uservoice, that it could work for highcharts too: "In basic charts it can be enabled by setting ordinal to true." from
So, any suggestions how to remove sunday and saturday from xAxis in HighCharts?
I am unable to render datetime chart without weekends. How can one do it?
Here is sample code (http://jsfiddle/LLExL/1720/):
$('#container').highcharts({
xAxis: {
type: "datetime",
ordinal: true,
dateTimeLabelFormats: {
day: '%a'
}
},
series: [{
data: [
[1375221600000, 180.45999999999998],
[1375308000000, 144.368],
[1375394400000, 108.27599999999998],
[1375653600000, 72.184],
[1375740000000, 36.092],
[1375826400000, 0]
]
}]
});
As you can see, I am trying "ordinal" option from highstocks. You can see in highcharts uservoice, that it could work for highcharts too: "In basic charts it can be enabled by setting ordinal to true." from http://highcharts.uservoice./forums/55896-general/suggestions/1089981-allow-irregular-datetime-xaxis-note-irregular-po
So, any suggestions how to remove sunday and saturday from xAxis in HighCharts?
Share Improve this question asked Aug 7, 2013 at 15:30 daviddddddaviddddd 731 silver badge6 bronze badges2 Answers
Reset to default 4Highcharts doesn't support ordinal axis. This feature is part of Highstock and require Highstock lbrary to be used. When using Highstock, you are able to create stock charts by calling new Highstock.StockChart()
and basic charts by callling new Highstock.Chart()
.
Oridinal axis is available only in the Highstock.
http://api.highcharts./highstock#xAxis.ordinal
I am unable to render datetime chart without weekends. How can one do it?
Here is sample code (/):
$('#container').highcharts({
xAxis: {
type: "datetime",
ordinal: true,
dateTimeLabelFormats: {
day: '%a'
}
},
series: [{
data: [
[1375221600000, 180.45999999999998],
[1375308000000, 144.368],
[1375394400000, 108.27599999999998],
[1375653600000, 72.184],
[1375740000000, 36.092],
[1375826400000, 0]
]
}]
});
As you can see, I am trying "ordinal" option from highstocks. You can see in highcharts uservoice, that it could work for highcharts too: "In basic charts it can be enabled by setting ordinal to true." from
So, any suggestions how to remove sunday and saturday from xAxis in HighCharts?
I am unable to render datetime chart without weekends. How can one do it?
Here is sample code (http://jsfiddle/LLExL/1720/):
$('#container').highcharts({
xAxis: {
type: "datetime",
ordinal: true,
dateTimeLabelFormats: {
day: '%a'
}
},
series: [{
data: [
[1375221600000, 180.45999999999998],
[1375308000000, 144.368],
[1375394400000, 108.27599999999998],
[1375653600000, 72.184],
[1375740000000, 36.092],
[1375826400000, 0]
]
}]
});
As you can see, I am trying "ordinal" option from highstocks. You can see in highcharts uservoice, that it could work for highcharts too: "In basic charts it can be enabled by setting ordinal to true." from http://highcharts.uservoice./forums/55896-general/suggestions/1089981-allow-irregular-datetime-xaxis-note-irregular-po
So, any suggestions how to remove sunday and saturday from xAxis in HighCharts?
Share Improve this question asked Aug 7, 2013 at 15:30 daviddddddaviddddd 731 silver badge6 bronze badges2 Answers
Reset to default 4Highcharts doesn't support ordinal axis. This feature is part of Highstock and require Highstock lbrary to be used. When using Highstock, you are able to create stock charts by calling new Highstock.StockChart()
and basic charts by callling new Highstock.Chart()
.
Oridinal axis is available only in the Highstock.
http://api.highcharts./highstock#xAxis.ordinal
本文标签: javascriptHighCharts datetime xAxis without missing values (weekends)Stack Overflow
版权声明:本文标题:javascript - HighCharts datetime xAxis without missing values (weekends) - Stack Overflow 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1745570265a2156694.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论