Hi all!
I have a strange behaviour of the tooltips on a Ultrachart.Item Values: Jannuary, February, March
Coresspondening Tooltip (mouse over): Jannuary, Jannuary, March.
So the Tooltip for February is displayed with the data from Jannauyr (see pic).
The genereated code in the aspx page:
<
script type="text/javascript">
//<![CDATA[
InitilizeScrollbar();
var ctl00_ContentPlaceHolder1_UltraChart1_IsLoaded = false;
function ctl00_ContentPlaceHolder1_UltraChart1_pRcEv(event, this_ref,row,column,event_name, layer_id)
{
if (ctl00_ContentPlaceHolder1_UltraChart1_IsLoaded)
Bounce(
event, "ctl00_ContentPlaceHolder1_UltraChart1", "onallevent", [this_ref, row, column, event_name, layer_id]);
}
function ctl00_ContentPlaceHolder1_UltraChart1_BaseMove(e)
Bounce(e,
'ctl00_ContentPlaceHolder1_UltraChart1');
var ctl00_ContentPlaceHolder1_UltraChart1 = null;
function Initializectl00_ContentPlaceHolder1_UltraChart1()
var TD = new Array(3);
TD[
"00_0_2"] = "March: 6.126.267 kos";
"00_0_1"] = "February: 6.089.362 kos";
"00_0_1"] = "January: 6.700.380 kos";
var ED = new Array(3);
ED[
"00_0_2"] = "0&2&6126267&CO2Savings&March&00";
"00_0_1"] = "0&1&6089362&CO2Savings&February&00";
"00_0_1"] = "0&1&6700380&CO2Savings&January&00";
var TOOLTIP = IGB.GetObject("ctl00_ContentPlaceHolder1_UltraChart1_IGTooltip");
if (TOOLTIP != null) if (TOOLTIP.style != null) with (TOOLTIP.style) {
align =
"left";
borderBottomWidths =
"1,1,1,1";
border =
"Black 1px outset";
backgroundColor =
"AntiqueWhite";
color =
"Black";
textDecorationUnderline =
"";
textDecorationLineThrough =
textDecorationOverline =
fontStyle =
fontWeight =
fontSize =
fontFamily =
margins =
padding=
"0";
height =
"auto";
width =
ctl00_ContentPlaceHolder1_UltraChart1 =
new IGUltraChart("ctl00_ContentPlaceHolder1_UltraChart1", "ChartImages", "ctl00$ContentPlaceHolder1$UltraChart1");
ctl00_ContentPlaceHolder1_UltraChart1.TooltipOverflow =
"ChartArea";
ctl00_ContentPlaceHolder1_UltraChart1.TooltipData = TD;
ctl00_ContentPlaceHolder1_UltraChart1.EventData = ED;
ctl00_ContentPlaceHolder1_UltraChart1.RowCount = 1;
ctl00_ContentPlaceHolder1_UltraChart1.ColumnCount = 3;
ctl00_ContentPlaceHolder1_UltraChart1.CreateComponents([
new IGRectangle(63, 40, 826, 218 )]);
ctl00_ContentPlaceHolder1_UltraChart1.EnableTooltipFading =
false;
ctl00_ContentPlaceHolder1_UltraChart1.TooltipDisplay = 1;
ctl00_ContentPlaceHolder1_UltraChart1.EnableCrossHair =
ctl00_ContentPlaceHolder1_UltraChart1.EnableServerEvent =
ctl00_ContentPlaceHolder1_UltraChart1.Render([
false, false, false, true, false, new IGRectangle(5, 33, 890, 267 )]);
ctl00_ContentPlaceHolder1_UltraChart1.DEBUG =
ctl00_ContentPlaceHolder1_UltraChart1.Section508Compliant =
ctl00_ContentPlaceHolder1_UltraChart1_IsLoaded =
true;
Initializectl00_ContentPlaceHolder1_UltraChart1();
//]]>
You can see it live: http://www.imscargo.com/content/en/greenlogistics/environmentprotection/carbonfootprint.aspx
Any ideas?
rgds
Hello polfi ,
I have been looking into your code still I am not sure how do you populate the chart data. Could you please provide me with a small sample where the issue presents so I can investigate it further.
Thanks in advance.
Sorry for the late reply.
What I try to show you is, that the tooltips are wrong.In the copied code you can see, that the tooltips were created OK, but on the webpage they are displaying wrong.
Go to http://www.imscargo.com/content/en/greenlogistics/environmentprotection/carbonfootprint.aspx and hoover over the bar's, you can see, that the tooltips for Jan. and Feb. are the same.
Hello polfi,
The service release containing the fix for your issue is out, you can download it from: https://ko.infragistics.com/my-account/keys-and-downloads/
I'd be glad to receive a feedback on the outcome.
I have verified that this is a known issue and it has already been fixed internally, so I have created a new private support ticket for you: CAS-113003-Z8Z9Y2 and I have linked it to issue 135078. This way you could be automatically notified as soon as the service release containing the resolution for this behavior is out.
You can view the status of the development issue connected to case CAS-113003-Z8Z9Y2 by selecting the "Development Issues" tab when viewing this case on the web site:
https://ko.infragistics.com/my-account/support-activity
Please let me know if you need any additional information on this matter.
For better understanding, belo is the Querryresult from the database:
Monatname CO2Savings
January 6700537
February 6082804
March 6410961
SwapRowsAndColumns="False" will now change the Axis-Labels from the monthname to CO2SAVINGS (this is the columnname) and also the Tooltips Labels to CO2SAVINGS.
Only the data values are now correct.
But I don't think, that this isthe real error because only the second colum is displaying wrong, first and third colums is everything ok.....
Thank you for sharing your code. I succeeded in reproducing the mentioned issue and I believe that it is caused because of the following setting:
SwapRowsAndColumns="True"
In order to resolve it you could just set this property to false. Then you can reduce the space between the columns by setting SeriwsSpacing and ColumnSpacing properties:
<ColumnChart SeriesSpacing="0" ColumnSpacing="0" />
Please note that we have already fixed this behavior internally and the resolution for it should be included in our next service release.
If you need any additional information on this matter please do not hesitate to ask.