ChartDirector General
Forum Home
Search
Message List
Post Message
[Jan-09-2012 10:29]
Show Error Message image
(Ashish)
[Jan-10-2012 00:45]
Re: Show Error Message image
(Peter Kwan)
Show Error Message image
Posted by Ashish on Jan-09-2012 10:29
|
Reply
|
Monitor
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
|
Reply
|
Monitor
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