Home » Archived » BIRT » Gap in the chart
Gap in the chart [message #209505] |
Fri, 05 January 2007 14:41  |
Eclipse User |
|
|
|
Hi,
I am trying to create a chart. When the datavalue is too high, then there is
gap between the X-Axis and Y-Axis. Any reason why that is happening and how
to fix it?
Please see the attached image.
Thanks
Bidyut
|
|
| | |
Re: Gap in the chart [message #209629 is a reply to message #209621] |
Fri, 05 January 2007 18:27   |
Eclipse User |
|
|
|
Yes, the first line means you set the origin by value, but you didn't set
its value, so it likely defaults it to zero.
As for the second chart, you could have your X axis on the Y zero, if you
restore this first line.
Then for the first chart it becomes a scale issue, where do you want your
y axis to start with? the automatic scaling takes the minimum value of the
data, you can set the scale min to zero if you want your bars to start at
zero.
And if you would like your bars to touch the axis, you have to remove the
spacing of the plot. (plot.sethorizontalspacing/verticalspacing to zero)
Hope this helps,
David
> Thanks. But I have not set it to zero. Instead I have the following
> code:
>
> xAxisPrimary.getOrigin().setType(IntersectionType.VALUE_LITE RAL);
> yAxisPrimary.getOrigin().setType(IntersectionType.MIN_LITERA L);
>
> This generates that funky chart.
>
> But if I comment out both lines, then the chart is somewhat fine. See
> the
> first attached image.
> However, if there is negative value, then the char is weird too. See
> the
> second attached image.
> Also why there is a gap between X-axis and Y-Axis intersection. Why
> don't they touch each other? So are the bars, they never touch the
> X-axis line.
>
> Thanks
> Bidyut
> "David Michonneau" <dmichonneau@actuate.com> wrote in message
> news:9c678db187d8c8ff3a3bc5d884@news.eclipse.org...
>
>> It looks like you have set the origin of your X Axis to 0 on the Y
>> axis. Just clear the value and it should automatically adjust.
>>
>> Thanks,
>>
>> David
>>
>>> Hi,
>>>
>>> I am trying to create a chart. When the datavalue is too high, then
>>> there is gap between the X-Axis and Y-Axis. Any reason why that is
>>> happening and how to fix it?
>>>
>>> Please see the attached image.
>>>
>>> Thanks
>>> Bidyut
|
|
|
Re: Gap in the chart [message #209637 is a reply to message #209629] |
Fri, 05 January 2007 19:05  |
Eclipse User |
|
|
|
David,
Thanks for the detail information. That makes it more clear now.
"David Michonneau" <dmichonneau@actuate.com> wrote in message
news:9c678db189b8c8ff40a4a46342@news.eclipse.org...
> Yes, the first line means you set the origin by value, but you didn't set
> its value, so it likely defaults it to zero.
>
> As for the second chart, you could have your X axis on the Y zero, if you
> restore this first line.
> Then for the first chart it becomes a scale issue, where do you want your
> y axis to start with? the automatic scaling takes the minimum value of the
> data, you can set the scale min to zero if you want your bars to start at
> zero.
>
> And if you would like your bars to touch the axis, you have to remove the
> spacing of the plot. (plot.sethorizontalspacing/verticalspacing to zero)
>
> Hope this helps,
>
> David
>
>> Thanks. But I have not set it to zero. Instead I have the following
>> code:
>>
>> xAxisPrimary.getOrigin().setType(IntersectionType.VALUE_LITE RAL);
>> yAxisPrimary.getOrigin().setType(IntersectionType.MIN_LITERA L);
>>
>> This generates that funky chart.
>>
>> But if I comment out both lines, then the chart is somewhat fine. See
>> the
>> first attached image.
>> However, if there is negative value, then the char is weird too. See
>> the
>> second attached image.
>> Also why there is a gap between X-axis and Y-Axis intersection. Why
>> don't they touch each other? So are the bars, they never touch the
>> X-axis line.
>>
>> Thanks
>> Bidyut
>> "David Michonneau" <dmichonneau@actuate.com> wrote in message
>> news:9c678db187d8c8ff3a3bc5d884@news.eclipse.org...
>>
>>> It looks like you have set the origin of your X Axis to 0 on the Y
>>> axis. Just clear the value and it should automatically adjust.
>>>
>>> Thanks,
>>>
>>> David
>>>
>>>> Hi,
>>>>
>>>> I am trying to create a chart. When the datavalue is too high, then
>>>> there is gap between the X-Axis and Y-Axis. Any reason why that is
>>>> happening and how to fix it?
>>>>
>>>> Please see the attached image.
>>>>
>>>> Thanks
>>>> Bidyut
>
>
|
|
|
Goto Forum:
Current Time: Sat May 10 01:04:14 EDT 2025
Powered by FUDForum. Page generated in 0.03151 seconds
|