Ecrion Software Inc. Homepage
Forum Home Forum Home > XF Designer > Generic Support
  New Posts New Posts RSS Feed: Charting Options
  FAQ FAQ  Forum Search   Register Register  Login Login

Charting Options

 Post Reply Post Reply
Author
Message / View First Unread Post
mattucg View Drop Down
Newbie
Newbie
Avatar

Joined: 28 Sep 2010
Posts: 32
Post Options Post Options   Quote mattucg Quote  Post ReplyReply Direct Link To This Post Topic: Charting Options
    Posted: 01 Nov 2011 at 11:57am
I have a simple template which displays a line chart. I would like to make some modifications, but I can't seem to find out how.

Here is the chart definition:

<xfd:chart type="line" width="300px" height="300px">
    <xc:legend legend-placement="none"/>
    <xc:plot-area x="10px" y="10px" width="280px" height="280px"/>
    <xfd:serie description="'Serie 1'" base-xpath="/CodeDistributionCollection/CodeSet/CodeList/ICD10Code" value="Distribution" caption="Distribution" category="Code" width="'20px'"/>
</xfd:chart>


Here is the sample data:

<CodeDistributionCollection>
    <CodeSet>
        <CodeList>
            <ICD10Code>
                <Code>99201</Code>
                <Distribution>0.49%</Distribution>
            </ICD10Code>
            <ICD10Code>
                <Code>99202</Code>
                <Distribution>5.46%</Distribution>
            </ICD10Code>
            <ICD10Code>
                <Code>99203</Code>
                <Distribution>30.29%</Distribution>
            </ICD10Code>
            <ICD10Code>
                <Code>99204</Code>
                <Distribution>50.47%</Distribution>
            </ICD10Code>
            <ICD10Code>
                <Code>99205</Code>
                <Distribution>13.27%</Distribution>
            </ICD10Code>
        </CodeList>
    </CodeSet>
</CodeDistributionCollection>


Here is the result

The first issue is that data points along the X axis are clumped together. It seems to be a problem specific to numbers, because if I add a letter at the beginning of each 'Code' value, the data points are spaced evenly.

I am also interested in formatting options. Can the values displayed along the Y-axis be controlled? If I have data points in the range of 1-60, I see values along the axis that end around 60. Would I be able to create a chart to scale to 100 even if the data only goes up to 60? Can I make the values more spaced out? There are many intermediate labels that could be omitted. Can I add percentage symbols next to the labels appearing on the Y axis?

Here is an example of how I would like the final chart to look. It doesn't have to match exactly, but I would like to get as close as possible.

Thanks in advance,
-Matt
Back to Top
radup View Drop Down
Admin Group
Admin Group
Avatar
Adminstrator

Joined: 19 May 2008
Posts: 90
Post Options Post Options   Quote radup Quote  Post ReplyReply Direct Link To This Post Posted: 01 Nov 2011 at 12:50pm
Hi mattucg,
 
I've made a sample for you:
<xfd:chart type="line" width="300px" height="300px">
<xc:legend legend-placement="none"/>
<xc:plot-area x="10px" y="10px" width="280px" height="280px"/>
<xc:category-axis data-type="string" orientation="horizontal">
<xc:tick-marks tick-mark-style="none"/>
<xc:grid-lines stroke="rgb(202,202,202)"/>
<xc:display-values font-weight="bold" offset="5pt" orientation="horizontal" placement="between" caption-color="rgb(0,0,0)"/>
</xc:category-axis>
<xc:value-axis orientation="vertical" unit="0.2" max="1">
<xc:grid-lines type="none"/>
<xc:display-values offset="5pt" format="###.#% th: dec:."/>
<xc:tick-marks tick-mark-style="none"/>
</xc:value-axis>
<xfd:serie description="'Serie 1'" base-xpath="/CodeDistributionCollection/CodeSet/CodeList/ICD10Code" value="number(substring-before(Distribution, '%'))* 0.01" caption="Distribution" category="Code" stroke="'rgb(102,102,102)'" srtoke-width="'2pt'" caption-offset="'50px'"/>
</xfd:chart>


Edited by radup - 01 Nov 2011 at 12:52pm
Back to Top
mattucg View Drop Down
Newbie
Newbie
Avatar

Joined: 28 Sep 2010
Posts: 32
Post Options Post Options   Quote mattucg Quote  Post ReplyReply Direct Link To This Post Posted: 01 Nov 2011 at 12:54pm
Wonderful. Thank you!

Is there a reference page I can use for other charting options? The built-in help is only so helpful.
Back to Top
radup View Drop Down
Admin Group
Admin Group
Avatar
Adminstrator

Joined: 19 May 2008
Posts: 90
Post Options Post Options   Quote radup Quote  Post ReplyReply Direct Link To This Post Posted: 02 Nov 2011 at 12:01pm
Unfortunately we don't have at this moment a page with charting options, but the online help will be updated by the end of November when the new release will come out.

Regards,
Radu
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Bulletin Board Software by Web Wiz Forums® version 9.69
Copyright ©2001-2010 Web Wiz

This page was generated in 0.219 seconds.