Jump to content
Software FX Community

Zooming Problem


User (Legacy)

Recommended Posts

Hi

I have a webpage with a chart on it. Now I want to enable the zoom function

with a button click. But this didn't work, the function is set to true

nevertheless it is unable to zoom in the chart. When I click on the zoom

icon in the toolbar it works. I tried out some other functions, like the

crosshairs to enable with a button click which works.

private void Button2_Click(object sender, System.EventArgs e)

{

Chart1.Zoom=true;

}

Daniel

Link to comment
Share on other sites

Yes,

I see what is your problem.

We don't send the Zoom Value from the Server to the Client.

In fact I don't really see this as being the best case.

If ALL you want to do is turn on the zoom using a button why don't you

capture the click of the Zoom on the Browswer and turn it on there.

you can just do Chart.Zoom=true; there.

The only tricky part is the MainClient propert must be set to false.

Does this work for you?

See Code Snippet below.

-c

<SCRIPT>

<!--- Hide script from old browsers

function RunMethod() {

obj = document.forms["Form1"].elements["Chart1"];

obj.Zoom = !obj.Zoom;

}

// end hiding from old browsers -->

</SCRIPT>

</HEAD>

<BODY MS_POSITIONING="GridLayout">

<FORM id="Form1" method="post" runat="server">

<ChartFX:Chart id="Chart1" style="Z-INDEX: 101; LEFT: 96px; POSITION:

absolute; TOP: 56px" runat="server"

Height="344px" Width="760px" ImgWidth="760" ImgHeight="344"

HtmlTag=".NET" MainClient="False"></ChartFX:Chart><INPUT style="Z-INDEX:

103; LEFT: 152px; POSITION: absolute; TOP: 464px" type="button"

value="Button" onclick="RunMethod()"></FORM>

</BODY>

"Daniel Winkler" <d.winkler@manner.com> wrote in message

news:kyG4npesFHA.1992@webserver3.softwarefx.com...

> Hi

>

>

>

> I have a webpage with a chart on it. Now I want to enable the zoom

> function with a button click. But this didn't work, the function is set to

> true nevertheless it is unable to zoom in the chart. When I click on the

> zoom icon in the toolbar it works. I tried out some other functions, like

> the crosshairs to enable with a button click which works.

>

>

>

> private void Button2_Click(object sender, System.EventArgs e)

>

> {

>

> Chart1.Zoom=true;

>

> }

>

>

>

> Daniel

>

>

>

Link to comment
Share on other sites

great so it works

thank you

mfg daniel

"Software FX Support" <support@softwarefx.com> schrieb im Newsbeitrag

news:1iX0XDysFHA.4084@webserver3.softwarefx.com...

> Yes,

> I see what is your problem.

> We don't send the Zoom Value from the Server to the Client.

> In fact I don't really see this as being the best case.

> If ALL you want to do is turn on the zoom using a button why don't you

> capture the click of the Zoom on the Browswer and turn it on there.

> you can just do Chart.Zoom=true; there.

> The only tricky part is the MainClient propert must be set to false.

> Does this work for you?

>

> See Code Snippet below.

> -c

>

> <SCRIPT>

> <!--- Hide script from old browsers

> function RunMethod() {

> obj = document.forms["Form1"].elements["Chart1"];

> obj.Zoom = !obj.Zoom;

> }

> // end hiding from old browsers -->

> </SCRIPT>

> </HEAD>

> <BODY MS_POSITIONING="GridLayout">

> <FORM id="Form1" method="post" runat="server">

> <ChartFX:Chart id="Chart1" style="Z-INDEX: 101; LEFT: 96px; POSITION:

> absolute; TOP: 56px" runat="server"

> Height="344px" Width="760px" ImgWidth="760" ImgHeight="344"

> HtmlTag=".NET" MainClient="False"></ChartFX:Chart><INPUT style="Z-INDEX:

> 103; LEFT: 152px; POSITION: absolute; TOP: 464px" type="button"

> value="Button" onclick="RunMethod()"></FORM>

> </BODY>

>

> "Daniel Winkler" <d.winkler@manner.com> wrote in message

> news:kyG4npesFHA.1992@webserver3.softwarefx.com...

>> Hi

>>

>>

>>

>> I have a webpage with a chart on it. Now I want to enable the zoom

>> function with a button click. But this didn't work, the function is set

>> to true nevertheless it is unable to zoom in the chart. When I click on

>> the zoom icon in the toolbar it works. I tried out some other functions,

>> like the crosshairs to enable with a button click which works.

>>

>>

>>

>> private void Button2_Click(object sender, System.EventArgs e)

>>

>> {

>>

>> Chart1.Zoom=true;

>>

>> }

>>

>>

>>

>> Daniel

>>

>>

>>

>

>

Link to comment
Share on other sites

hi again

now i have an other problem with the zoom function. i click my zoom button

and zoom the chart where i want. but in the zoom mode i can not click on a

point as before, i must doubleclick on a point that i get the data of the

point. with this doubleclick i leave the zoom mode and the chart is shown as

before. so i want clickable chart with zoom mode. is there any way to get

this work?

mfg daniel

Link to comment
Share on other sites

Dear Daniel,

I am afraid this is not possible.

As our zoom is a multilevel zoom (meaning you can zoom on your zoom) the

first click is, for obvious reasons, reserved for the next zoom.

The Axis class does have a Zoom Method which will allow you to

programatically zoom to a point/yaxis value

Then you will still have the first click.

I will spark a discussion here but this is by-design. I will get back to you

if I hear anything useful.

-c

"Daniel Winkler" <d.winkler@manner.com> wrote in message

news:JtYEYrFtFHA.1992@webserver3.softwarefx.com...

> hi again

>

> now i have an other problem with the zoom function. i click my zoom button

> and zoom the chart where i want. but in the zoom mode i can not click on a

> point as before, i must doubleclick on a point that i get the data of the

> point. with this doubleclick i leave the zoom mode and the chart is shown

> as before. so i want clickable chart with zoom mode. is there any way to

> get this work?

>

> mfg daniel

>

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...