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

Support custom chart option.id #546

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

stowball
Copy link

nvd3 supports custom IDs, but your Angular version didn't.

From the docs:

Description:

Applies the provided ID as part of the unique class name for the chart. For tooltip, this value is read-only. For charts, you can use this to specify custom CSS for particular charts. For example, if you set the chart to have id 'woot', you can customize the CSS using the selector .nvd3.nv-chart-woot

Input Type(s):

number or string

Default:

A random ID is generated by default

Example(s):

chart.id(123)
chart.id("chart56")

@pertrai1
Copy link

@stowball I don't know if you are still using this, but if so, there is a new repo that is going to continue to maintain development: https://github.com/pertrai1/angular-nvd3-charts

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.

2 participants