Change default date format for chart tooltips (https://github.com/woocommerce/woocommerce-admin/pull/459)
This commit is contained in:
parent
a27134e1a6
commit
a877f45471
|
@ -51,6 +51,6 @@ Name | Type | Default | Description
|
|||
`dateParser` | `string` | `%Y-%m-%dT%H:%M:%S` | Format to parse datetimes in the data
|
||||
`type`* | `string` | `line` | Chart type of either `line` or `bar`
|
||||
`title` | `string` | none | Chart title
|
||||
`tooltipFormat` | `string` | `%Y-%m-%d` | Title and format of the tooltip title
|
||||
`tooltipFormat` | `string` | `%B %d, %Y` | Title and format of the tooltip title
|
||||
`xFormat` | `string` | `%Y-%m-%d` | d3TimeFormat of the x-axis values
|
||||
`yFormat` | `string` | `.3s` | d3Format of the y-axis values
|
||||
|
|
|
@ -254,7 +254,7 @@ D3Chart.defaultProps = {
|
|||
top: 20,
|
||||
},
|
||||
layout: 'standard',
|
||||
tooltipFormat: '%Y-%m-%d',
|
||||
tooltipFormat: '%B %d, %Y',
|
||||
type: 'line',
|
||||
width: 600,
|
||||
xFormat: '%Y-%m-%d',
|
||||
|
|
|
@ -332,7 +332,7 @@ Chart.propTypes = {
|
|||
Chart.defaultProps = {
|
||||
data: [],
|
||||
dateParser: '%Y-%m-%dT%H:%M:%S',
|
||||
tooltipFormat: '%Y-%m-%d',
|
||||
tooltipFormat: '%B %d, %Y',
|
||||
xFormat: '%d',
|
||||
x2Format: '%b %Y',
|
||||
yFormat: '$.3s',
|
||||
|
|
Loading…
Reference in New Issue