{"action":"opened","issue":{"url":"https://api.github.com/repos/FormidableLabs/victory-native/issues/421","repository_url":"https://api.github.com/repos/FormidableLabs/victory-native","labels_url":"https://api.github.com/repos/FormidableLabs/victory-native/issues/421/labels{/name}","comments_url":"https://api.github.com/repos/FormidableLabs/victory-native/issues/421/comments","events_url":"https://api.github.com/repos/FormidableLabs/victory-native/issues/421/events","html_url":"https://github.com/FormidableLabs/victory-native/issues/421","id":385745800,"node_id":"MDU6SXNzdWUzODU3NDU4MDA=","number":421,"title":"VictoryLine y-values change when new data points are added","user":{"login":"hochmanjoel","id":22176573,"node_id":"MDQ6VXNlcjIyMTc2NTcz","avatar_url":"https://avatars1.githubusercontent.com/u/22176573?v=4","gravatar_id":"","url":"https://api.github.com/users/hochmanjoel","html_url":"https://github.com/hochmanjoel","followers_url":"https://api.github.com/users/hochmanjoel/followers","following_url":"https://api.github.com/users/hochmanjoel/following{/other_user}","gists_url":"https://api.github.com/users/hochmanjoel/gists{/gist_id}","starred_url":"https://api.github.com/users/hochmanjoel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hochmanjoel/subscriptions","organizations_url":"https://api.github.com/users/hochmanjoel/orgs","repos_url":"https://api.github.com/users/hochmanjoel/repos","events_url":"https://api.github.com/users/hochmanjoel/events{/privacy}","received_events_url":"https://api.github.com/users/hochmanjoel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-29T13:51:11Z","updated_at":"2018-11-29T13:51:11Z","closed_at":null,"author_association":"NONE","body":"* [Unsure ] This is a `victory-native` specific issue.\r\n* [Yes] I have read through the FAQ\r\n* [Yes] I am using the latest version of `victory-native`\r\n* [Yes] I have checked to make sure that my versions of `react-native` and `react-native-svg` are compatible with this version of `victory-native`.\r\n* [Absolutely] I've searched open issues to make sure I'm not opening a duplicate issue\r\n\r\nProblem: I am trying to make a simple line graph that updates when I select new data. My VictoryLine does not appear to be recognizing my y-axis (VictoryAxis) as the dependent axis. In fact, the line functions almost the same when I completely remove both axis components. I am unsure how to get my line to reliably graph based on the actual given data. Specifics below.\r\n\r\nReproduction\r\nSystem:\r\nreact-native: 0.55.4\r\nreact-native-svg: 6.5.0\r\nvictory-charts: 0.0.1\r\nvictory-native: 31.0.0\r\n\r\nI am using the prop `allData` to pass in part of a redux store. The default redux store is structured:\r\n![image](https://user-images.githubusercontent.com/22176573/49225737-bfbd2980-f3dc-11e8-9de7-1bc75abebbc3.png)\r\n\r\nThe two default points do not automatically appear on the graph (even when domains are removed from the axes). If I were to select 1, the graph would appear to start at 10 and go towards 1. If I were then to select 10, the y-intercept would move down towards 5 where it is supposed to be. Example images below:\r\n![image](https://user-images.githubusercontent.com/22176573/49225921-2fcbaf80-f3dd-11e8-8d9d-75669c4f1ef3.png)\r\n![image](https://user-images.githubusercontent.com/22176573/49225937-33f7cd00-f3dd-11e8-9b95-a72d49a7d74f.png)\r\n\r\nHere is the code I am working with:\r\n`import React from 'react';\r\nimport { View, StyleSheet, Text } from 'react-native';\r\nimport Svg from 'react-native-svg';\r\nimport { VictoryAxis, VictoryLine } from 'victory-native';\r\n\r\nconst MoodGraph = ({ allData }) => {\r\n\r\n\t\treturn(\r\n\t\t\t<View>\r\n\t\t\t\t<Svg>\r\n\t\t        \t<VictoryAxis //Select domain that works absolute then can eventually be filtered by range\r\n\t\t        \t\tdomain={{x: [new Date(2018, 11, 29, 13), new Date(2018, 11, 29)]}} //set domain to exclude first two state points (so victory line works with no visual errors)\r\n\t\t        \t\tscale=\"time\"\r\n\t\t        \t\tstandalone={false}\r\n\t\t        \t/>\r\n\t\t        \t<VictoryAxis dependentAxis\r\n\t\t        \t\tdomain={[0, 10]} //Adjust picker to selected domain\r\n\t\t        \t\torientation=\"left\"\r\n\t\t        \t\tstandalone={false}\r\n\t\t        \t/>\r\n\t\t        \t<VictoryLine //Need this line to graph mood over time, experimenting with dif domains\r\n\t\t        \t\tstyle={{ data: { stroke: \"#000FFF\"}}}\r\n\t\t        \t\tdata={allData}\r\n\t\t        \t\tx=\"date\"\r\n\t\t        \t\ty= \"rating\" \r\n\t\t        \t\tscale= {{x: \"time\", y: \"linear\"}}      \t\t\r\n\t\t        \t/>\r\n\t\t\t\t</Svg>\r\n\t\t\t</View>\r\n\t\t);\r\n\t\r\n};\r\n\r\nconst styles = StyleSheet.create({\r\n\tparent: {\r\n\t\tbackgroundColor: \"#000000\",\r\n\t\tpadding: 0\r\n\t},\r\n\r\n});\r\n\r\nexport default MoodGraph;`\r\n\r\nThis is driving me crazy. Please help!!"}}
{"actor":{"display_login":"hochmanjoel"}}