Skip to content

Latest commit

 

History

History
45 lines (30 loc) · 720 Bytes

title.md

File metadata and controls

45 lines (30 loc) · 720 Bytes

Title

Your chart title.

Import

var Title = require('react-d3-core').Title;

Example

var title = "test-chart",
  titleClassName = "test-chart-class";

(function() {
  React.render(
    <Title
      title= {title}
      titleClassName= {titleClassName}
      />
  , document.getElementById('title')
  )
})()

Setting props

You can customize Title component using the following properties.

  • title
  • titleClassName

title

default as 'Chart Title'

title is the title that will show up on top of your chart.

titleClassName

default as react-d3-core__container_title

titleClassName is the setting that set the class of the title class="your-title-class-name"