ASE Home Page Products Download Purchase Support About ASE
ChartDirector General
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  Show Error Message image
Posted by Ashish on Jan-09-2012 10:29
Some times we do not have enough data to generate a chart. I want to show a dynamically generated image with an error message instead of chart. How can do it in python version of chart director?

  Re: Show Error Message image
Posted by Peter Kwan on Jan-10-2012 00:45
Hi Ashish,

You may draw an empty chart with just a title. For example:

if ... insufficient data ... :
    c = PieChart(400, 50)
    c.addTitle2(Center, "Not Enough Data Available")
    .... output the chart as usual .....

Hope this can help.

Regards
Peter Kwan