ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  How to remove Tooltip message (mouse over) in Area graph
Posted by Bill on Jul-15-2020 06:48
Hi Peter,
    Let me know how to remove the tooltip (mouse over) text message in Area graph?
Thanks in advance

Bill

  Re: How to remove Tooltip message (mouse over) in Area graph
Posted by Peter Kwan on Jul-15-2020 19:32
Hi Bill,

Do you have a "getHTMLImageMap" line in your code? The tooltip is created by that line. If you remove that line, there will be no tooltip on the chart.

If your chart has multiple layers, and you want to disable tooltip only for an area layer, but enable tooltips for other layers, you can call Layer.setHTMLImageMap for the area layer to disable its tooltips. It is like:

myAreaLayer.setHTMLImageMap("{disable}");

Hope this can help.

Regards
Peter Kwan

  Re: How to remove Tooltip message (mouse over) in Area graph
Posted by Bill on Jul-15-2020 19:57
Attachments:
It worked disabled the graph area. but my problem is the single data graph. I want it tooltip enable but not work.

Heres my code:

AreaLayer layer = c.addAreaLayer2(Chart.Stack);
                layer.setHTMLImageMap("{disable}");
                if (lblIndicator.Text == "HIGH")
                {
                    layer.addDataSet(LOW_LIMIT, Convert.ToInt32(RedBackColor.Replace("#", "0x"), 16), "").setDataName("");
                    layer.addDataSet(MID_LIMIT, Convert.ToInt32(YellowBackColor.Replace("#", "0x"), 16), "").setDataName("");
                    layer.addDataSet(HIGH_LIMIT, Convert.ToInt32(GreenBackColor.Replace("#", "0x"), 16), "").setDataName("");
                }
                else
                {
                    layer.addDataSet(LOW_LIMIT, Convert.ToInt32(GreenBackColor.Replace("#", "0x"), 16), "").setDataName("");
                    layer.addDataSet(MID_LIMIT, Convert.ToInt32(YellowBackColor.Replace("#", "0x"), 16), "").setDataName("");
                    layer.addDataSet(HIGH_LIMIT, Convert.ToInt32(RedBackColor.Replace("#", "0x"), 16), "").setDataName("");
                }

SplineLayer layer3 = c.addSplineLayer();
                layer3.addDataSet(ACTUAL3, 0x000000, "avg").setDataSymbol(Chart.Cross2Symbol, 14);
                layer3.addDataSet(ACTUAL3, 0x000000, "avg").setDataSymbol(Chart.CrossSymbol, 14);
                layer3.setLineWidth(3);
                layer3.moveFront();
gr1.PNG

  Re: How to remove Tooltip message (mouse over) in Area graph
Posted by Bill on Jul-16-2020 06:28
Still haven't get the tooltip value on avg chart. Please help on this.
thanks

  Re: How to remove Tooltip message (mouse over) in Area graph
Posted by Peter Kwan on Jul-16-2020 12:24
Hi Bill,

As your probably know, the SplineLayer is for a spline curve. So there will be tooltip for the spline curve. For your "avg" SplineLayer (layer3), I do not see any spline curve, so there is no tooltip because there is no curve for the tooltip. (You need at least two points to draw a line or curve.)

If you want to display a single symbol, please use a scatter layer.

ScatterLayer layer3 = c.addScatterLayer(null, ACTUAL3, "avg", Chart.Cross2Symbol, 14, 0x000000);
layer3.addDataSet(ACTUAL3, 0x000000, "avg").setDataSymbol(Chart.CrossSymbol, 14);
layer3.moveFront();

Hope this can help.

Regards
Peter Kwan

  Re: How to remove Tooltip message (mouse over) in Area graph
Posted by Bill on Jul-16-2020 16:11
It worked now. Thanks a lot