Jump to content
Software FX Community

pointlables and chartcolors.


User (Legacy)

Recommended Posts

Hi.

I got two problems regarding ChartFX used in an asp-file.

I created this chart http://www.milter.dk/images/chart.gif

1.

There are shown numbers on top of each of the three bars, which is what I

wanted. But I also need to show numbers at the bottom of each bar. Because I

want to show the values there too. In case of the first bar, it is the

value -99,08 I want to show just below the red part of the bar.

2.

As you can see on the picture, there are some thin red linies (marked with

the yellow arrows). These I dont want to show.

I know that I defined a red color for the bottom and a green color for the

top, and I have given the iniValueEX-values on these two bars the same

value. But If I dont give them a value, the green bar will just continue

down to the zero-line.

One way of solving this is to define six different colors in the chart. One

for the top-part of the first bar, on for the bottom-part of the first bar,

one for the top-part of the second bar, on for the bottom-part of the second

bar, and again for the third bar....But is that possible, and how?

Below is a sample of my code:

---

Set afkastudsvingChart = Server.CreateObject("ChartFX.WebServer")

afkastudsvingChart.Gallery = bar

afkastudsvingChart.Chart3d = false

afkastudsvingChart.Cluster = true

afkastudsvingChart.View3D = true

afkastudsvingChart.Volume = 50

afkastudsvingChart.RGBBk =

RGB(chartlegend(0),chartlegend(1),chartlegend(2)) 'baggrundsfarve p

Link to comment
Share on other sites

1. We do not offer a built-in way to display the numbers you want so you

have two options

a) Use the Annotation API to create 1 text object per bar making sure you

use Attach to fix the text object at a specific X,Y position.

B) Create another series that you will chart as markers (i.e. points)

setting the marker type to none. The values for these invisible markers will

probably have to be equal to your IniValue minus a factor if you want the

labels to appear outside of the bars.

2. Have you tried setting the Value for the "red" bars to CHART_HIDDEN in

the portions where no red bar should appear ?

--

Regards

JC

Software FX Support

"Mads Milter" <mads@milter.dk> wrote in message

news:JmDGzVjqBHA.1416@webserver1.softwarefx.com...

> Hi.

>

> I got two problems regarding ChartFX used in an asp-file.

> I created this chart http://www.milter.dk/images/chart.gif

>

> 1.

> There are shown numbers on top of each of the three bars, which is what I

> wanted. But I also need to show numbers at the bottom of each bar. Because

I

> want to show the values there too. In case of the first bar, it is the

> value -99,08 I want to show just below the red part of the bar.

>

> 2.

> As you can see on the picture, there are some thin red linies (marked with

> the yellow arrows). These I dont want to show.

> I know that I defined a red color for the bottom and a green color for the

> top, and I have given the iniValueEX-values on these two bars the same

> value. But If I dont give them a value, the green bar will just continue

> down to the zero-line.

> One way of solving this is to define six different colors in the chart.

One

> for the top-part of the first bar, on for the bottom-part of the first

bar,

> one for the top-part of the second bar, on for the bottom-part of the

second

> bar, and again for the third bar....But is that possible, and how?

>

> Below is a sample of my code:

> ---

> Set afkastudsvingChart = Server.CreateObject("ChartFX.WebServer")

> afkastudsvingChart.Gallery = bar

> afkastudsvingChart.Chart3d = false

> afkastudsvingChart.Cluster = true

> afkastudsvingChart.View3D = true

> afkastudsvingChart.Volume = 50

> afkastudsvingChart.RGBBk =

> RGB(chartlegend(0),chartlegend(1),chartlegend(2)) 'baggrundsfarve p

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...