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

X grid lines do not work with category values #800

Closed
jkleint opened this issue Dec 3, 2014 · 3 comments
Closed

X grid lines do not work with category values #800

jkleint opened this issue Dec 3, 2014 · 3 comments
Labels
C-feature-request Category: A feature request or an enhancement resolved maybe

Comments

@jkleint
Copy link

jkleint commented Dec 3, 2014

If you have an axis with type category, trying to use an X grid line with a value of a category name fails to draw the grid line. Using the category index still works. This is with commit 56d9d45 (v 0.4.7).

http://jsfiddle.net/9dqn7cq4/1/

var chart = c3.generate({
    data: {
        columns: [
            ['sample', 30, 200, 100, 400, 150, 250]
        ]
    },
    axis: {
        x: {
            type: 'category',
            categories: ['a', 'b', 'c', 'd', 'e', 'f'],
        }
    },
    grid: {
        x: {
            //lines: [{value: 3, text: 'Label 3'}]   // This "works," but probably isn't what you want
            lines: [{value: 'd', text: 'Label d'}]   // This does not work as of 56d9d450f1
        }
    }
});
@aendra-rininsland
Copy link
Member

Confirming, marking as bug.

@aendra-rininsland aendra-rininsland added the C-bug Category: This is a bug label Dec 4, 2014
@masayuki0812
Copy link
Member

Now this feature got supported. I'll release this in the next version v0.4.8.

@masayuki0812 masayuki0812 added C-feature-request Category: A feature request or an enhancement resolved maybe and removed C-bug Category: This is a bug labels Dec 6, 2014
@masayuki0812
Copy link
Member

v0.4.8 has been released, so please let me close.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-feature-request Category: A feature request or an enhancement resolved maybe
Projects
None yet
Development

No branches or pull requests

3 participants