Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added option to support a custom offset on line chart axis label #161

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

fiznool
Copy link
Contributor

@fiznool fiznool commented Oct 11, 2012

Fixes issue #153. The master branch chops off the axis datapoint labels when using a line chart. This pull request fixes this by adding a configurable custom offset.

See images below, notice that the 4.0% label is cut off.

Before:

Line chart with axis label cut off

After:

Line chart with axis label not cut off

This is achieved with an extra offset option:

grid: {
  offset: {
    top: 10,
    bottom: 0,
    left: 10,
    right: 10
  }
}

@drichert
Copy link

drichert commented Nov 7, 2012

👍

@tanek100
Copy link

it would be nice to have this in main code also, not in branch because i just updated the library and i lost the offset nice feature.
flotr2_bugs_lime

@atuttle
Copy link

atuttle commented Feb 18, 2013

👍

@cesutherland
Copy link
Member

I'll get this in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants