Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Chart titles #78

Open
rileyrenn6 opened this issue Jul 18, 2017 · 1 comment
Open

Chart titles #78

rileyrenn6 opened this issue Jul 18, 2017 · 1 comment

Comments

@rileyrenn6
Copy link

rileyrenn6 commented Jul 18, 2017

Is there not a "title" attribute to add a title to the overall chart? For example, something like

<NVD3Chart
id="myChart"
type="lineChart"
chartTitle="My Line Chart" .............../>

@topicus
Copy link
Contributor

topicus commented Aug 4, 2017

@rileyrenn6 There is no title but you can achieve the same by creating a wrapper component:

class ChartWrapper extend React.Component {
  render(){
     <div>
       <h3>{this.props.title}</h3>
         <NVD3Chart
            id="myChart"
            type="lineChart"
            ............/>
     </div>
  }
}

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

No branches or pull requests

2 participants