Jump to content
Software FX Community

Negative series in a "one bar barchart"


User (Legacy)

Recommended Posts

Correction....

It happens to lines, curves and area as well.

Pie chart works perfectly though, but the handle negative and positive data

the same...

The Y-Axis is also missing, but if I turn on pointlabels the pointlabel will

show the negative value within the chart pane...

"Helge Olsen" <Helge.Olsen@Agresso.no> wrote in message

news:7co%23WbU4FHA.1708@webserver3.softwarefx.com...

> Hi!

>

> I'm having problems displaying the bar in a barchart when there is only

> one Series and the value is negative.

> The problem only happens for barcharts. Any other thart will display the

> series...

>

> Can anyone help me?

>

Link to comment
Share on other sites

Correction....

It happens to lines, curves and area as well.

Pie chart works perfectly though, but the handle negative and positive data

the same...

The Y-Axis is also missing, but if I turn on pointlabels the pointlabel will

show the negative value within the chart pane...

"Helge Olsen" <Helge.Olsen@Agresso.no> wrote in message

news:7co%23WbU4FHA.1708@webserver3.softwarefx.com...

> Hi!

>

> I'm having problems displaying the bar in a barchart when there is only

> one Series and the value is negative.

> The problem only happens for barcharts. Any other thart will display the

> series...

>

> Can anyone help me?

>

Link to comment
Share on other sites

The problem here is that although there is a default min value (0) there is 

no default for the Max.

So if you have only ONE value and it is negative, both Min and Max will end

up being the same (the value) and therefore there is no scale to show.

You can detect this case by checking the value of Min and Max after passing

data and you can set the Max to Zero (if that is what you want) or to any

value that will allow for a scale to be shown.

--

Francisco Padron

www.chartfx.com

Link to comment
Share on other sites

The problem here is that although there is a default min value (0) there is 

no default for the Max.

So if you have only ONE value and it is negative, both Min and Max will end

up being the same (the value) and therefore there is no scale to show.

You can detect this case by checking the value of Min and Max after passing

data and you can set the Max to Zero (if that is what you want) or to any

value that will allow for a scale to be shown.

--

Francisco Padron

www.chartfx.com

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...