Welcome Guest Search | Active Topics |

Help Crosshairs Candstick and Line
nguyenngoc
#1 Posted : Saturday, August 18, 2012 4:51:55 AM(UTC)
Rank: Member

Groups: Registered
Joined: 7/21/2012(UTC)
Posts: 13

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
$('#jqChart').bind('dataHighlighting', function (event, data) {

if (!data) {
$('#jqChartVolume').jqChart('highlightData', null);
return;
}

$('#open').html(data.open);
$('#high').html(data.high);
$('#low').html(data.low);
$('#close').html(data.close);

var date = data.chart.stringFormat(data.x, "yyyy-mm-dd");

$('#date').html(date);

if ($('#jqChart').jqChart('isMouseOver')) {
var index = $.inArray(data.dataItem, data);
$('#jqChartVolume').jqChart('highlightData', [volumeData[index]]);
}
});

$('#jqChartVolume').bind('dataHighlighting', function (event, data) {

if (!data) {
$('#jqChart').jqChart('highlightData', null);
return;
}

$('#volume').html(data.y);

if ($('#jqChartVolume').jqChart('isMouseOver')) {
var index = $.inArray(data.dataItem, volumeData);
$('#jqChart').jqChart('highlightData', [ohlcData[index]]);
}
});

$('#jqChart').jqChart('highlightData', [ohlcData[0]]);
$('#jqChartVolume').jqChart('highlightData', [volumeData[0]]);


not using isMouseOver jqChart ???
Dragan
#2 Posted : Saturday, August 18, 2012 5:20:47 AM(UTC)
Rank: Advanced Member

Groups: Administrators, DataVizJavaScript, jQueryChart, jQueryDV, MvcChart, Registered
Joined: 1/3/2011(UTC)
Posts: 483

Thanks: 0 times
Was thanked: 87 time(s) in 87 post(s)
Hi,

Can you be a little more specify about the issue here? I'm not sure I understand this.
Best Regards,
Dragan Matek
jqChart Inc.
nguyenngoc
#3 Posted : Sunday, August 19, 2012 8:45:27 PM(UTC)
Rank: Member

Groups: Registered
Joined: 7/21/2012(UTC)
Posts: 13

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
$('#jqChart').bind('dataHighlighting', function (event, data) {

if (!data) {
$('#jqChartVolume').jqChart('highlightData', null);
return;
}

$('#open').html(data[1].open);
$('#high').html(data[1].high);
$('#low').html(data[1].low);
$('#close').html(data[1].close);
$('#pricead').html(data[0].y);
$('#pricesu').html(data[2].y);

var date = data[1].chart.stringFormat(data[1].x, "yyyy-mm-dd");

$('#date').html(date);

if ($('#jqChart').jqChart('isMouseOver')) {
var index = $.inArray(data[1].dataItem, ohlcData);
$('#jqChartVolume').jqChart('highlightData', [volumeData[index]]);
}
});



$('#jqChartVolume').bind('dataHighlighting', function (event, data) {

if (!data) {
$('#jqChart').jqChart('highlightData', null);
return;
}

$('#volume').html(data.y);

if ($('#jqChartVolume').jqChart('isMouseOver')) {
var index = $.inArray(data.dataItem, volumeData);
$('#jqChart').jqChart('highlightData', [ohlcData[index]]);


}
});

I asked for seats [ohlcData [index]] replaced by something so that when the jqChartVolume isMouseOver jqchart still get the data on the
Dragan
#4 Posted : Wednesday, August 22, 2012 3:31:15 AM(UTC)
Rank: Advanced Member

Groups: Administrators, DataVizJavaScript, jQueryChart, jQueryDV, MvcChart, Registered
Joined: 1/3/2011(UTC)
Posts: 483

Thanks: 0 times
Was thanked: 87 time(s) in 87 post(s)
I’m not sure if this is from the language barrier, but it is difficult for me to get the idea of your issue.
Best Regards,
Dragan Matek
jqChart Inc.
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

FlatEarth Theme by Jaben Cargman (Tiny Gecko)
Powered by YAF 1.9.4 | YAF © 2003-2010, Yet Another Forum.NET
This page was generated in 0.114 seconds.