• 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.

Item6719: Math for bar sizes/placement needs to be proportional instead of fixed

Item Form Data

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

Edit Form Data

Summary:
Reported By:
Codebase:
Applies To:
Component:
Priority:
Current State:
Waiting For:
Target Release:
Released In:
 

Detail

In bar charts, the way bar sizes are measured are based on fixed pixel sizes and should be calculated proportionally instead. Currently this plugin uses BARLEADINGSPACE, BARTRAILINGSPACE, and BARSPACE and all are fixed pixel sizes. For wide charts, this works OK, but as the chart becomes narrower, these values no longer make sense since they can be proportially inaccurate and in extreme cases wider than there is actual room to place the bars in.

For example if a chart is 100 pixels wide and there are 10 data points, so 10 X-axis values, then there would only be 10 pixels for each data point/bar, and with the default values for BARLEADINGSPACE = 6 and BARTRAILINGSPACE = 6, there would be no room for any bars since the spacing would require 12 pixels.

So the leading and trailing space along with the space between bars should be proportial

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

Obsoleted plugin parameters:

  • BARLEADINGSPACE
  • BARTRAILINGSPACE
  • BARSPACE
since they had fixed pixel widths, replacing them with: * BARLEADINGSPACEUNITS * BARWIDTHUNITS * BARSPACEUNITS * BARTRAILINGSPACEUNITS allowing for relative spacing to be defined. So a value of 2 is twice as wide as 1.

In the process of making this change, some other bar sizing issues were found and fixed.

-- TaitCyrus - 2011-05-11

ItemTemplate
Summary Math for bar sizes/placement needs to be proportional instead of fixed
ReportedBy TWiki:Main.TaitCyrus
Codebase

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

Checkins TWikirev:21208
TargetRelease n/a
ReleasedIn

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r2 - 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