Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Possible charts? Post Reply Post New Topic
Author Message
mlord
Newbie
Newbie


Joined: 19 Nov 2007
Online Status: Offline
Posts: 1
Quote mlord Replybullet Topic: Possible charts?
    Posted: 19 Nov 2007 at 1:24pm
I have 2 "is this chart possible" questions.  We are using Crystal Reports X, thanks in advance for any responses.
 

1st scenario:

Is there a way to color code a stacked bar chart?  We need to have one horizontal bar with the colors listed below.  In other words, we need to color code a date range to a specific color based on the "Color" column.  I have it to the point of different colors for each date range in a single stacked bar, but cannot figure out how to link to a specific color.

ID

StartDate

EndDate

Color

1

10/18/2007

11/15/2007

GREEN

1

05/31/2007

10/18/2007

YELLOW

1

03/08/2007

05/31/2007

ORANGE

1

01/25/2007

03/08/2007

YELLOW

1

06/09/2006

01/25/2007

ORANGE

1

03/17/2006

06/09/2006

RED

 2nd chart:

We are trying to create a chart that will show what medications a person is on and the time period they were on each.  Basically - the graph must look like the mock-up below.  The + signs are data points.  The  person could be on a medication for 2 months, then have a 5 month gap, then go back on the same medication again.  Is there a way to do this in Crystal?  The only chart we could find that was close was a Gantt chart, but that chart puts each item on one line. 

The data can be manipulated before crystal accesses it also - if that would make the chart more feasible.

     |
M1   |  +--+---+      +-----+
     |
     | 
     |
M2   |     +-+---+         +--+   +--+--+
     |
     |
     |
M3   | +---+-+---+     +---+   +--+--+
     |____________________________________

                     Dispense Dates

Thank you!

Melissa
IP IP Logged
BrianBischof
Admin Group
Admin Group
Avatar

Joined: 09 Nov 2006
Online Status: Offline
Posts: 2458
Quote BrianBischof Replybullet Posted: 19 Nov 2007 at 1:37pm
The only one I know of is a Gantt chart (which as you mentioned isn't exactly what you need). I haven't seen putting more than one line on the same row.
Please support the forum! Tell others by linking to it on your blog or website:<a href="http://www.crystalreportsbook.com/forum/">Crystal Reports Forum</a>
IP IP Logged
Lugh
Senior Member
Senior Member
Avatar

Joined: 14 Nov 2007
Online Status: Offline
Posts: 377
Quote Lugh Replybullet Posted: 19 Nov 2007 at 2:58pm
Hmm.  I have an idea on that 2nd scenario.  I'd need to play with it, to see if I could make it work.  The basic thought is setting up a formula that converts the date range to a binary.  The 0 value will, naturally, drop to the axis, disappearing.  The tricky bit will be separating out the different medications to different lines, and eliminating the vertical lines going to and from the axis.

As for the 1st scenario, I know that there's the conditional color tab in the Chart Expert.  But, I seem to recall that it doesn't exist in X, only in XI. 


IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.031 seconds.