Simply don't print zero (#954)
This commit is contained in:
parent
d55cedb36c
commit
83de206e9e
|
@ -60,7 +60,7 @@ export const BinaryContractChart = (props: {
|
|||
const yScale = scaleLinear([0, 1], [height - MARGIN_Y, 0])
|
||||
return (
|
||||
<div ref={containerRef}>
|
||||
{width && (
|
||||
{width > 0 && (
|
||||
<SingleValueHistoryChart
|
||||
w={width}
|
||||
h={height}
|
||||
|
|
|
@ -163,7 +163,7 @@ export const ChoiceContractChart = (props: {
|
|||
const yScale = scaleLinear([0, 1], [height - MARGIN_Y, 0])
|
||||
return (
|
||||
<div ref={containerRef}>
|
||||
{width && (
|
||||
{width > 0 && (
|
||||
<MultiValueHistoryChart
|
||||
w={width}
|
||||
h={height}
|
||||
|
|
|
@ -37,7 +37,7 @@ export const NumericContractChart = (props: {
|
|||
const yScale = scaleLinear([0, maxY], [height - MARGIN_Y, 0])
|
||||
return (
|
||||
<div ref={containerRef}>
|
||||
{width && (
|
||||
{width > 0 && (
|
||||
<SingleValueDistributionChart
|
||||
w={width}
|
||||
h={height}
|
||||
|
|
|
@ -81,7 +81,7 @@ export const PseudoNumericContractChart = (props: {
|
|||
|
||||
return (
|
||||
<div ref={containerRef}>
|
||||
{width && (
|
||||
{width > 0 && (
|
||||
<SingleValueHistoryChart
|
||||
w={width}
|
||||
h={height}
|
||||
|
|
Loading…
Reference in New Issue
Block a user