Opened 2 years ago

Closed 2 years ago

#2804 closed Bug (fixed)

graph image cutoff first digits when Y axis has decimals

Reported by: thenumbercoder Owned by: JulienM
Priority: normal Milestone:
Component: Core Keywords:
Cc: Sensitive: no

Description

The API's ImageGraph works fine when numbers along the Y axis are all whole numbers, but when one of them has a decimal point (ie, 1.5, 0.5) the first digit and the decimal number get cut off the side of the image, like so
http://demo.piwik.org/index.php?module=API&method=ImageGraph.get&idSite=3&apiModule=VisitsSummary&apiAction=get&token_auth=anonymous&graphType=evolution&period=day&date=2011-11-26&width=500&height=250&segment=country==DE

Attachments (1)

Screen shot 2011-11-28 at 12.49.40 PM.png (9.3 KB) - added by thenumbercoder 2 years ago.

Download all attachments as: .zip

Change History (3)

Changed 2 years ago by thenumbercoder

comment:1 Changed 2 years ago by JulienM (JulienMoumne)

  • Owner set to JulienM
  • Status changed from new to assigned

comment:2 Changed 2 years ago by JulienM (JulienMoumne)

  • Resolution set to fixed
  • Status changed from assigned to closed

(In [5582]) * fixes #2706, #2828, #2704, refs #1721, #2637, #2711, #2318, #71 : horizontal static graph implemented

  • fixes #2788, refs #2670, #1721, #2637, #2711 : default graph type logic moved to ImageGraph API, improved date/period logic, new parameter graphs_default_period_to_plot_when_period_range
  • fixes #2704, #2804, refs #1721 : pChart updated to 2.1.3, pChart code removed from Piwik code, OOP refactoring, support for unifont.ttf if present in ImageGraph/fonts, testAllSizes now uses report metadata ImageGraphUrl
  • refs #71 : space between report title and report table reduced to avoid page overflow
  • refs #2829 : TODO display percentages
  • r5544, r5547, r5549 merged
Note: See TracTickets for help on using tickets.