Skip to content
This repository has been archived by the owner on Sep 17, 2021. It is now read-only.

Extra vertical gridline on the StockLine chart with a specific data set #23

Closed
marzolfb opened this issue Nov 14, 2016 · 1 comment
Closed
Labels

Comments

@marzolfb
Copy link
Contributor

(An extension of #17)
There is an extra vertical gridline on the StockLine chart with a specific data set.

image

It can be reproduced with the following on both emulators for iOS and Android (Nexus 5, Android 7.1.1 - API level 25) using the following:

import React from 'react';
import { AppRegistry, View } from 'react-native';
import {StockLine} from 'react-native-pathjs-charts';

export class StockLineExample extends React.Component {
  render() {
    var data = [[{"x":3,"y":71},{"x":6,"y":75},{"x":7,"y":61}]];

    var options = {
      width: 275 ,
      height: 200,
      color: '#2980B9',
      margin: {
        top: 20,
        left: 20,
        bottom: 20,
        right: 15
      },
      animate: {
        type: 'delayed',
        duration: 200
      },
      axisX: {
        showAxis: false,
        showLines: true,
        showLabels: true,
        showTicks: true,
        zeroAxis: true,
        orient: 'bottom',
        tickValues: [],
        label: {
          fontFamily: 'Arial',
          fontSize: 8,
          fontWeight: true,
          fill: '#34495E'
        }
      },
      axisY: {
        showAxis: false,
        showLines: true,
        showLabels: true,
        showTicks: true,
        zeroAxis: true,
        orient: 'left',
        tickValues: [],
        label: {
          fontFamily: 'Arial',
          fontSize: 8,
          fontWeight: true,
          fill: '#34495E'
        }
      }
    };

    return (
      <View style={{flex:1,alignItems:"center",justifyContent:"center"}}>
        <StockLine
          data={data}
          options={options}
          xKey='x' yKey='y' />
      </View>
    );
  }
}

AppRegistry.registerComponent('example', () => StockLineExample);
@marzolfb marzolfb added the bug label Nov 14, 2016
@marzolfb
Copy link
Contributor Author

Somewhere along the line, this issue got fixed. Not seeing the extra vertical gridline on either iOS or Android anymore.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant