FormidableLabs / victory-cli

A tool for generating charts on the command line.
MIT License
310 stars 13 forks source link

Unable to supply height and width command line arguments #3

Open TheRobBrennan opened 7 years ago

TheRobBrennan commented 7 years ago

Hey all! I'm experimenting with this tool, but realized if I specify width and height (running on macOS) I generate a slew of errors:

Sample command:

$ victory-cli ./dev/sample.json \
        -x age \
        -y aptitude \
        -h 500 \
        -w 500 \
        -t light \
        -c line > ./dev/sample.png

Sample output:
Warning: Failed prop type: Invalid prop `height` of type `string` supplied to `VictoryChart`, expected `number`.
    in VictoryChart (created by VictoryWrapper)
    in VictoryWrapper
Warning: Failed prop type: Invalid prop `width` of type `string` supplied to `VictoryChart`, expected `number`.
    in VictoryChart (created by VictoryWrapper)
    in VictoryWrapper
Warning: Failed prop type: Invalid prop `height` of type `string` supplied to `VictoryContainer`, expected `number`.
    in VictoryContainer
    in VictoryChart (created by VictoryWrapper)
    in VictoryWrapper
Warning: Failed prop type: Invalid prop `width` of type `string` supplied to `VictoryContainer`, expected `number`.
    in VictoryContainer
    in VictoryChart (created by VictoryWrapper)
    in VictoryWrapper
Warning: Failed prop type: Invalid prop `height` of type `string` supplied to `VictoryAxis`, expected `number`.
    in VictoryAxis (created by VictoryChart)
    in VictoryChart (created by VictoryWrapper)
    in VictoryWrapper
Warning: Failed prop type: Invalid prop `width` of type `string` supplied to `VictoryAxis`, expected `number`.
    in VictoryAxis (created by VictoryChart)
    in VictoryChart (created by VictoryWrapper)
    in VictoryWrapper
Warning: Failed prop type: Invalid prop `height` of type `string` supplied to `VictoryLine`, expected `number`.
    in VictoryLine (created by VictoryChart)
    in VictoryChart (created by VictoryWrapper)
    in VictoryWrapper
Warning: Failed prop type: Invalid prop `width` of type `string` supplied to `VictoryLine`, expected `number`.
    in VictoryLine (created by VictoryChart)
    in VictoryChart (created by VictoryWrapper)
    in VictoryWrapper
Warning: Failed prop type: Invalid prop `clipHeight` of type `string` supplied to `ClipPath`, expected `number`.
    in ClipPath
    in VictoryLine (created by VictoryChart)
    in g
    in svg (created by VictoryContainer)
    in VictoryContainer
    in VictoryChart (created by VictoryWrapper)
    in VictoryWrapper
Warning: Failed prop type: Invalid prop `clipWidth` of type `string` supplied to `ClipPath`, expected `number`.
    in ClipPath
    in VictoryLine (created by VictoryChart)
    in g
    in svg (created by VictoryContainer)
    in VictoryContainer
    in VictoryChart (created by VictoryWrapper)
    in VictoryWrapper