Jump to content
Software FX Community

Get rid of panes in Financial Extension


User (Legacy)

Recommended Posts

Hello

One stupit question :-)

I am using financial extension and I need to display my chart without panes.

When I add a Volume series with this code I don't want it in a sepirate

pane, I want it inside my chart similar to the image included. I have

tried to set the MaxPane = 0 and I have tried some other fetures with no

result. This should be a simple task but I can't find out how to do it with

the financial extension, with no extension it seems to be fairly simple.

Could you help me please?

The code:

SoftwareFX.ChartFX.Financial.Server.Volume vol = new

SoftwareFX.ChartFX.Financial.Server.Volume();

chartFinancial.Gallery.Analytical.Studies.Add(vol);

vol.Series[0].Color = volumeColor;

Best regards

Kristj

Link to comment
Share on other sites

Dear Kristjan,

You are correct, what you are asking to do is not simple at all.

We have never entertained this thought.

The Volume study often has a completely different scale to the Close/Open

values so it always seemed natural to to put it on another pane. That is the

logic for all the studies.

If you still want to do this there is a workaround. The problem is once a

study is created it can't be moved from pane 1 to pane 2.

What you can do is create another Volume study which is really a

StaticStudy. That study is added to the studies collection. There are two

problems with this approach.

1) The UI will still be there for you to turn on the real volume study. This

needs to be disabled in several places so it is not simple.

2) Depending on your data, there may be problems when you want the

ClosePriceSeries to be in front of the CustomVolumeStudy.

Because you add the Custom Volume Study last, any other way is not possible,

it is by default the front most series. This *could* mean your close line

will be completely hidden.

I provided a snippet to show you the workaround. Problem 1 is not solved but

problem 2 is.

Try and use the commands and toolbar api to hide the UI for the Studies.

To do this you will need to use the Analytical.GetAnalyticalCommandID and

the Financial.GetFinCommandID methods.

Hope this helps.

-c

"Kristj

post-2107-13922381054793_thumb.gif

Link to comment
Share on other sites

Hello Charles

This solution is working for me. Thank you very much.

I have one minor problem that is to get rid of the legend 'User Data', this

is the staticstudie wich is drawn over the ClosingPrizes studie . What is

the best way to do that?

Best regards

Kristjan

"Software FX Support" <support@softwarefx.com> wrote in message

news:jNY3LaTTGHA.232@webserver3.softwarefx.com...

> Dear Kristjan,

> You are correct, what you are asking to do is not simple at all.

> We have never entertained this thought.

> The Volume study often has a completely different scale to the Close/Open

> values so it always seemed natural to to put it on another pane. That is

> the logic for all the studies.

>

> If you still want to do this there is a workaround. The problem is once a

> study is created it can't be moved from pane 1 to pane 2.

> What you can do is create another Volume study which is really a

> StaticStudy. That study is added to the studies collection. There are two

> problems with this approach.

> 1) The UI will still be there for you to turn on the real volume study.

> This needs to be disabled in several places so it is not simple.

> 2) Depending on your data, there may be problems when you want the

> ClosePriceSeries to be in front of the CustomVolumeStudy.

> Because you add the Custom Volume Study last, any other way is not

> possible, it is by default the front most series. This *could* mean your

> close line will be completely hidden.

>

> I provided a snippet to show you the workaround. Problem 1 is not solved

> but problem 2 is.

> Try and use the commands and toolbar api to hide the UI for the Studies.

> To do this you will need to use the Analytical.GetAnalyticalCommandID and

> the Financial.GetFinCommandID methods.

>

> Hope this helps.

> -c

>

>

> "Kristj

Link to comment
Share on other sites

Sorry

This is the picture shows the problem.

I want to get rid of "User Data" legend wich is drawn on the closing prise

series to make it be in the front.

Regards Kristjan

"Software FX Support" <support@softwarefx.com> wrote in message

news:lLPsdlcTGHA.220@webserver3.softwarefx.com...

> Please attach a screenshot circling which legend you want to remove.

> Is it in the Chart Legend or the Financial Legend?

> Did you replace my "Custom Close" string to "User Data"?

> -c

>

> "Kristj

Link to comment
Share on other sites

Dear Kristjan,

This is partially a bug and partially a by design feature.

We clearly have never designed the software for such a case so it is not

really a bug and not really by-design.

There is a workaround here, but it really depends on whether you are

outputting this chart as an image or the active client.

Meaning, are your users going to interact with the tool, are there going to

be postbacks.

If at the end of the pageload you set the Label in the UserLegendBoxItem to

be string.Emtpy you can hide the legend item

chart1.UserLegendBoxObj.Item[2].Label = "";

Of course you will have to know which item to set, here I have it as 2.

If you turn on the DataEditor you will see the problem still.

Try using the ActiveClient and right click to turn on the toolbar and you

wll see the legend reappear.

If this is your case get back to me and we will have to provide a hotfix for

you.

Let me know.

-c

"Kristj

post-2107-13922381055492_thumb.gif

Link to comment
Share on other sites

Dear Kristjan,

We have a PriceDisplay enum value which is called None

Set it to None. All my other code is still good. Just disregard the last

post.

financial1.Gallery.Analytical.PriceDisplay = PriceDisplay.None;

It should just hide the Close Price Series for you. There is a small bug

when you set it.

I will provide a hotfix for you.

Contact support@softwarefx.com and mention Charles

I will get it out to you.

-c

"Software FX Support" <support@softwarefx.com> wrote in message

news:ny40r4dTGHA.220@webserver3.softwarefx.com...

> Dear Kristjan,

> This is partially a bug and partially a by design feature.

> We clearly have never designed the software for such a case so it is not

> really a bug and not really by-design.

> There is a workaround here, but it really depends on whether you are

> outputting this chart as an image or the active client.

> Meaning, are your users going to interact with the tool, are there going

> to be postbacks.

>

> If at the end of the pageload you set the Label in the UserLegendBoxItem

> to be string.Emtpy you can hide the legend item

> chart1.UserLegendBoxObj.Item[2].Label = "";

> Of course you will have to know which item to set, here I have it as 2.

>

> If you turn on the DataEditor you will see the problem still.

>

> Try using the ActiveClient and right click to turn on the toolbar and you

> wll see the legend reappear.

> If this is your case get back to me and we will have to provide a hotfix

> for you.

>

> Let me know.

> -c

>

>

> "Kristj

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...