• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Item6716: Add ability to specify constant values in legend

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Extension ChartPlugin Normal Closed   n/a  

Edit Form Data

Reported By:
Applies To:
Current State:
Waiting For:
Target Release:
Released In:


Need ability to specify constant legend values instead of being forced to use table data.

-- TWiki:Main/TaitCyrus - 2011-05-06

This change affects not just legend, but also any plugin parameter that allows for a spreadsheet range to be specified (data, data2, xaxis, and datalegend). Now a constant can be specified in addition to spreadsheet ranges.

For example specifying: data="R1:C1..R10:C1,0" would draw 2 lines. The first is from R1:C1..R10:C1 and the second would be a line with the constant value = 0 with 10 data points (to match the number of data points specified in the first line). This would allow you to highlight the value 0 if some of your data is < 0 and other data is > 0.

Or say that you want to use a data legend that is different from any data that might appear in a table cell, so you could do something like: legend="R1:C1..R1..C4,--avg--" which would create 4 data legends from the table and a 5th data legend as the constant =--avg--.

This also allows for creating a chart that doesn't get any data from a table. For example specifying data="1, 2, 3, 4, 5" would create a line with 5 points on it with the specified values. This feature allows for easily creating sparkline, sparkbar, and sparkarea.

-- TaitCyrus - 2011-05-11

Summary Add ability to specify constant values in legend
ReportedBy TWiki:Main.TaitCyrus

SVN Range TWiki-5.1.0-trunk, Tue, 19 Apr 2011, build 21041
AppliesTo Extension
Component ChartPlugin
Priority Normal
CurrentState Closed

Checkins TWikirev:21208
TargetRelease n/a

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r3 - 2011-05-11 - TaitCyrus
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback