SID-00972: Trap ChartPlugin error
| Status: |
Answered |
TWiki version: |
4.3.1 |
Perl version: |
5.10 |
| Category: |
ChartPlugin |
Server OS: |
Windows Vista |
Last update: |
14 years ago |
I have a chart which gets data from a database. The chart shows properly when there is data returned by the query. But if the query returns no rows, it shows a
ChartPlugin error. How do I capture the error so that a blank chart shows up without showing the
ChartPlugin error?
--
TWikiGuest - 2010-09-21
Discussion and Answer
The
ChartPlugin needs to be enhanced. Could be done with a new
showerror="" parameter. Proposed spec:
-
showerror="text" - show errors as text (default)
-
showerror="image" - show errors as text in chart image
-
showerror="no" - do not show errors
TWiki is open source. You could sponsor the work. Or if you are a programmer, you could enhance the plugin and post a patch to the
ChartPluginDev page.
See related
SID-00973.
--
PeterThoeny - 2010-09-21
I just added this functionality (Item6714: Enhance error processing)
--
TaitCyrus - 2011-05-05
Cool! Thanks Tait for enhancing the ChartPlugin!
--
PeterThoeny - 2011-05-06
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.