0
我使用Highstockchart在图表上绘制4个系列,主要是烛台,然后我有2个系列绘制priceplus,pricelower价格,然后另一个来表示体积。 我有自pricelower/priceplus的提示一个问题,显示的时间为UNIX日期时间,而不是在人redeable形式(你可以在这个截图中看到)定制工具提示离开蜡烛棒,因为它是
我想这不会进行修改
我怎样才能做到这一点? 感谢
这里是我的JS代码
function onSuccess(data) {
var r = JSON.stringify(data);
debugger;
kendo.ui.progress($('#container'), false);
$('#container')
.highcharts('StockChart',
{
exporting: {
enabled: false
},
credits:
{
enabled: false
},
rangeSelector: {
selected: 1,
inputEnabled:false,
buttonTheme: {
visibility: 'hidden'
},
labelStyle: {
visibility: 'hidden'
}
},
yAxis: [
{
height: '80%',
lineWidth: 2
}, {
top: '85%',
height: '15%',
offset: 0,
lineWidth: 2
}
],
xAxis:
{
ordinal: true
}
,
series: [
{
type: 'candlestick',
name: 'Price',
data: data.Prices,
id: 'dataseries',
upColor: "#31D431",
color: "#D22F2F",
marker:{
enabled: true
}
},
{
type: 'scatter',
name: 'Prices plus',
data: data.PricesPlus
},
{
type: 'scatter',
name: 'Price less',
data: data.PricesLess
}
, {
type: 'column',
name: 'Volume',
data: data.Volume,
yAxis: 1,
dataGrouping: {
units: groupingUnits
}
}
],
width: 4,
tooltip: {
shared: false
}
});
}
原谅我,我添加了一个标记系列在此集合,但它并没有显示我的文字,它说不确定......我怎么在这个hadle格式化程序? – advapi
你增加了额外的系列?你能用你的代码更新我的jsfiddle吗? –