Change default date format for chart tooltips (https://github.com/woocommerce/woocommerce-admin/pull/459)

This commit is contained in:
Albert Juhé Lluveras 2018-09-20 16:21:03 +02:00 committed by GitHub
parent a27134e1a6
commit a877f45471
3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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',

View File

@ -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',