@shopify/polaris-viz
Advanced tools
Comparing version 0.14.1 to 0.15.0
# Changelog | ||
## Unreleased | ||
## [0.15.0] - 2021-05-20 | ||
### Changed | ||
- Zero value min-height bars are not enabled by default in `<BarChart />` and `<MultiSeriesBarChart />` | ||
- The `useMinimalLabels` prop for `<BarChart />` will not use a middle label when there are an even number of bars below 12 | ||
### Fixed | ||
- Min height bars not being shown when all bars are negative in `<BarChart />` and `<MultiSeriesBarChart />` | ||
## [0.14.1] - 2021-05-18 | ||
@@ -4,0 +17,0 @@ |
{ | ||
"name": "@shopify/polaris-viz", | ||
"description": "Shopify’s viz component library", | ||
"version": "0.14.1", | ||
"version": "0.15.0", | ||
"private": false, | ||
@@ -6,0 +6,0 @@ "license": "SEE LICENSE IN LICENSE.md", |
@@ -21,5 +21,5 @@ /// <reference types="react" /> | ||
height?: OpaqueInterpolation<any> | number; | ||
allValuesNegative: boolean; | ||
rotateZeroBars: boolean; | ||
} | ||
export declare function Bar({ color, x, rawValue, yScale, width, onFocus, index, ariaLabel, tabIndex, role, height, hasRoundedCorners, allValuesNegative, }: Props): JSX.Element; | ||
export declare function Bar({ color, x, rawValue, yScale, width, onFocus, index, ariaLabel, tabIndex, role, height, hasRoundedCorners, rotateZeroBars, }: Props): JSX.Element; | ||
export {}; |
export { useXScale } from './use-x-scale'; | ||
export { useYScale } from './use-y-scale'; | ||
export { useMinimalLabelIndexes } from './use-minimal-label-indexes'; |
@@ -25,2 +25,6 @@ import { Color, StringLabelFormatter, NumberLabelFormatter, GradientStop } from 'types'; | ||
hasRoundedCorners: boolean; | ||
/** | ||
* @deprecated This prop is experimental and not ready for general use. If you want to use this, come talk to us in #polaris-data-viz | ||
*/ | ||
zeroAsMinHeight: boolean; | ||
} | ||
@@ -27,0 +31,0 @@ export interface GridOptions { |
@@ -16,6 +16,7 @@ /// <reference types="react" /> | ||
hasRoundedCorners: boolean; | ||
zeroAsMinHeight: boolean; | ||
isAnimated?: boolean; | ||
allValuesNegative?: boolean; | ||
rotateZeroBars?: boolean; | ||
} | ||
export declare function BarGroup({ x, data, yScale, width, colors, height, onFocus, barGroupIndex, ariaLabel, hasRoundedCorners, isSubdued, isAnimated, allValuesNegative, }: Props): JSX.Element; | ||
export declare function BarGroup({ x, data, yScale, width, colors, height, onFocus, barGroupIndex, ariaLabel, hasRoundedCorners, isSubdued, zeroAsMinHeight, isAnimated, rotateZeroBars, }: Props): JSX.Element; | ||
export {}; |
@@ -33,2 +33,6 @@ import { Series as ShapeSeries } from 'd3-shape'; | ||
isStacked: boolean; | ||
/** | ||
* @deprecated This prop is experimental and not ready for general use. If you want to use this, come talk to us in #polaris-data-viz | ||
*/ | ||
zeroAsMinHeight: boolean; | ||
} | ||
@@ -35,0 +39,0 @@ export interface GridOptions { |
@@ -25,1 +25,2 @@ export { eventPoint } from './event-point'; | ||
export { makeColorOpaque, makeGradientOpaque } from './make-color-opaque'; | ||
export { shouldRotateZeroBars } from './should-rotate-zero-bars'; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
796895
381
11257