-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Add title config option to c3 charts core #1025
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
Conversation
This finished successfully on Travis, but isn't reporting duration and seems stuck in pending mode - maybe need to kick off another build? |
Interesting. This only fails for me locally some of the time - I did a full grunt build and jasmine run before pushing - it seems one of the draw values is calculated incorrectly on certain runs, but not others. |
I don't believe my changes are related to the failing arc spec. At first I was concerned that the top padding changes were messing with the math, but no title is specified in the arc tests. Using some console logs, I saw that the top padding was always To investigate further, I did a fresh clone of the |
Intermittent test failure notwithstanding, it's awesome you've done this. I'll try to get around to reviewing this in the next day or so. |
@Aendrew thanks - my other pull request (#1303) is somewhat related to this one as well. In conjunction, they allow you to have title & header and a top-right anchored legend to get a chart layout like this: https://dribbble.com/shots/1879542-Story-type-breakdown-chart?list=users&offset=2 we're using c3 at Pivotal Tracker for our new charts framework, so we wanted to contribute to the library where we can :) |
Hi! Quick review:
Again, many thanks, this is really nice! 👍 |
Thanks for the review, hope this makes it in soon. |
c11f069
to
749011d
Compare
Hi again! Default positioning is now terrific; thanks for doing that! I should've been a little clearer; when I said "remove the minified files", I didn't so much mean |
@Aendrew ah, I see - sorry! just committed the new version |
👍 LGTM! |
@Aendrew cleaned up merge conflicts, should be ready to go any time |
Add title config option to c3 charts core
Looks nice. Thank you very much for working on this 👍 @davidpoore @Aendrew |
@masayuki0812 awesome! |
As I wrote in #1021 , I added |
@masayuki0812 yeah, that seems like a reasonable change - glad to get this functionality into the core library. I hope my other pull requests can also be merged soon :) |
When will it be released? I need to display the title for the charts. It is urgent. |
@Dhruva2015 It's in the |
Hi there, is this still functional? I tried it on my graphs today and nothing changed:
|
Is there an example for the usage, especially concerning the padding and position out yet? |
Hi, and about position? (center=default/left/right) top=default/button |
For Issue #1021
Based on my work doing some local modifications to c3 for Pivotal Tracker, this code allows users to specify a
title
config options, passing ittext
,x
, and/ory
values and rendering it as a text node on the chart.