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

Message ListMessage List     Post MessagePost Message

  How to remove default Open, High, Low etc values from the Chart.
Posted by Manisha on Jul-28-2015 19:46
Attachments:
Hi,

Can you please help me out to know how can i remove the default values and label for
Open, High, Low, etc from the chart which is basically coming from code behind as i am
using asp .net chart and also using javascript code to get track line cursor as shown in the
image below.

I am getting data dynamically from the database not using generateRandomData also
using   JsChartViewer.addEventListener(window, 'load', function () {
            var viewer = JsChartViewer.get('<%=WebChartViewer1.ClientID%>');

            // Draw track cursor when mouse is moving over plotarea
            viewer.attachHandler(["MouseMovePlotArea", "TouchStartPlotArea",
"TouchMovePlotArea", "ChartMove", "PostUpdate", "Now"],
                function (e) {
                    this.preventDefault(e);   // Prevent the browser from using touch events for
other actions
                    traceFinance(viewer, viewer.getPlotAreaMouseX());
                });
            viewer.updatingMsg = "";
        });

function.

Thanks
ChartDirector.png

  Re: How to remove default Open, High, Low etc values from the Chart.
Posted by Peter Kwan on Jul-29-2015 01:45
Hi Manisha,

There is an example in ChartDirector called "Finance Chart Track Line" that shows how to
remove the default legend. The code is like (in C#):

// Disable default legend box, as we are using dynamic legend
c.setLegendStyle("normal", 8, Chart.Transparent, Chart.Transparent);

Hope this can help.

Regards
Peter Kwan

  Re: How to remove default Open, High, Low etc values from the Chart.
Posted by Manisha on Jul-29-2015 17:32
Sir,
I worked perfect thankssss.

Peter Kwan wrote:

Hi Manisha,

There is an example in ChartDirector called "Finance Chart Track Line" that shows how to
remove the default legend. The code is like (in C#):

// Disable default legend box, as we are using dynamic legend
c.setLegendStyle("normal", 8, Chart.Transparent, Chart.Transparent);

Hope this can help.

Regards
Peter Kwan