Skip to main content
November 14, 2008
Question

cfchart bar width

  • November 14, 2008
  • 3 replies
  • 2344 views
I have a design that features multiple bar charts of equal height, but varying numbers of bars in each chart, stacked vertically on a page.

I would like to use CFChart, but I noticed that the width of the bars resize to fill the chart. The problem is that charts with fewer bars have wider bars than those with more bars, which doesn't match the design I'm given. (I also have no control over their spacing.)

Is there a way to control this? or must I resort to a third-party package?
    This topic has been closed for replies.

    3 replies

    Inspiring
    November 18, 2008
    One more thing, you might try adjusting the axis min/max scale. See if that has any impact.

    Sorry I could not be of more help.
    Inspiring
    November 18, 2008
    I looked around, but so far all of the properties I found all depend on bucket size, which makes sense. But I do not know of if there is way to override them without monkeying with the overall chart width or resorting to empty series.

    > Alternatively, I would attach a screenshot image, but this forum
    > does not appear to support file attachments

    No, it does not. But you can always publish an image on your own site or a public image site. Then post the url here.
    November 18, 2008
    That's what I thought.

    Nonetheless, thanks for your help!
    Inspiring
    November 14, 2008
    Many of the settings can be customized with styles. Have you looked at the webcharts utility?
    http://livedocs.adobe.com/coldfusion/7/htmldocs/00001431.htm
    http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=graphing_06.html
    November 14, 2008
    Yes, I've been studying those docs, as well as experimenting with the chart styles XML and WebCharts3D, on and off for a couple of days now. Still no luck in producing the design I mentioned.

    However, by varying the overall widths of the charts, I can lessen the undesired visual effect of having bars of noticeably different widths, but that compromises the design I was given to produce.
    Inspiring
    November 15, 2008
    From what I understand, the width settings are a percentage of the "bucket size", which obviously varies based on the number of bars and the chart size. Can you post a small sample the demonstrates the issue?