-
Notifications
You must be signed in to change notification settings - Fork 197
Description
Description
Hi there,
I have a chart with multiple datasets and also with negative values.
My current implementation is like this for the linechart:
<LineChart
backgroundColor={colors.white}
dataSet={processLineData}
maxValue={maxCalculatedValue}
mostNegativeValue={overAllMinPointValue}
isAnimated
formatYLabel={formatYLabel}
width={calc(260)}
height={126}
spacing={calc(260) / maxLengthOfCharts}
endSpacing={8}
curved
yAxisLabelPrefix="%"
curveType={CurveType.QUADRATIC}
yAxisSide={yAxisSides.LEFT}
yAxisThickness={0}
yAxisLabelWidth={45}
xAxisColor={colors.neutral300}
initialSpacing={8}
yAxisLabelContainerStyle={styles.labelContainer}
yAxisTextStyle={styles.yAxisText}
hideRules
adjustToWidth
xAxisType="dotted"
focusEnabled
pointerConfig={{
showPointerStrip: true,
pointerStripColor: 'magenta',
hidePointers: true,
}}
noOfSections={3}
noOfSectionsBelowXAxis={3}
stepHeight={42}
stripWidth={1}
/>
Its not visible in the negative area. Like in the below image:
Would rather have a constant position in y-axis and constant height. Is that somehow possible?
Steps to reproduce
<LineChart
backgroundColor={colors.white}
dataSet={processLineData}
maxValue={maxCalculatedValue}
mostNegativeValue={overAllMinPointValue}
isAnimated
formatYLabel={formatYLabel}
width={calc(260)}
height={126}
spacing={calc(260) / maxLengthOfCharts}
endSpacing={8}
curved
yAxisLabelPrefix="%"
curveType={CurveType.QUADRATIC}
yAxisSide={yAxisSides.LEFT}
yAxisThickness={0}
yAxisLabelWidth={45}
xAxisColor={colors.neutral300}
initialSpacing={8}
yAxisLabelContainerStyle={styles.labelContainer}
yAxisTextStyle={styles.yAxisText}
hideRules
adjustToWidth
xAxisType="dotted"
focusEnabled
pointerConfig={{
showPointerStrip: true,
pointerStripColor: 'magenta',
hidePointers: true,
}}
noOfSections={3}
noOfSectionsBelowXAxis={3}
stepHeight={42}
stripWidth={1}
/>
Give a multiline dataset.
Snack or a link to a repository
No response
version of react-native-gifted-charts
1.4.58
React Native version
0.74.3
Platforms
iOS
Workflow
React Native