Line chart thickness / font size control

Help
jlcdev
2012-12-30
2013-02-09
  • jlcdev
    jlcdev
    2012-12-30

    I use the following code to display a line chart following the example but the labels are dim, title too big, and line not sharp. Business users complained about the look of the image. Is there a way I can control the effect of the font and the line using cewolf tags? Any idea to help generate a professional look image? Thanks!

    <jsp:useBean id="lineRenderer" class="de.laures.cewolf.cpp.LineRendererProcessor" />
    <jsp:useBean id="visualEnhancer" class="de.laures.cewolf.cpp.VisualEnhancer" />
    <cewolf:chart
    plotbackgroundcolor="#FFFFFF"
        id="line11"
        title="<%=rcb1.getTitle() %>"
        type="line"
        xaxislabel="<%=rcb1.getxLabel() %>"
        yaxislabel="<%=rcb1.getyLabel() %>">
        <cewolf:data>
            <cewolf:producer id="rcb1"/>
        </cewolf:data>
        <cewolf:chartpostprocessor id="lineRenderer">
        <cewolf:param name="shapes" value="true" />
        <cewolf:param name="outline" value="true" />
        <cewolf:param name="useFillPaint" value="true" />
        <cewolf:param name="fillPaint" value="#FFFFFF" />
        <cewolf:param name="useOutlinePaint" value="true" />
        <cewolf:param name="outlinePaint" value="#000000" />
        </cewolf:chartpostprocessor>
        <cewolf:chartpostprocessor id="visualEnhancer">
            <cewolf:param name="border" value="true"/>
            <cewolf:param name="rangeIncludesZero" value="false"/>
        </cewolf:chartpostprocessor>
    </cewolf:chart>
    <cewolf:img chartid="line11" renderer="cewolf" width="600" height="400">
    <cewolf:map linkgeneratorid="rcb1" tooltipgeneratorid="rcb1"/>
    </cewolf:img>

     
  • Ulf Dittmer
    Ulf Dittmer
    2012-12-30

    I'm not sure what, exactly, "the labels are dim" or "line not sharp" means, so I can't help with that without a good deal more information (especially sample images).

    Just about anything about the appearance of titles can be changed using the TitleEnhancer postprocessor. The test page in the example web app shows it in action.

     
  • jlcdev
    jlcdev
    2012-12-31

    Thank you for the response. I cannot find a way to upload the sample image to the forum. Is there a postprocessor I can use to change the look of the numbers on the x or y axis (for example, using a different font or different size), or making the lines sharper (for example sample more points to support higher resolution)? Some of the settings for line chart such as antialias/fontsize/legendanchor don't seem have any effect inside the <cewolf:chart> tag.

     
  • Ulf Dittmer
    Ulf Dittmer
    2012-12-31

    Let's take this discussion offline. I sense it could turn into something longer, and I don't like this forum software. Please contact me at udittmer@yahoo.com with your detailed questions and any screenshots you want to share.

     
  • Ulf Dittmer
    Ulf Dittmer
    2013-02-09

    I've responded in the other thread.