{"action":"created","issue":{"url":"https://api.github.com/repos/PhilJay/MPAndroidChart/issues/1115","labels_url":"https://api.github.com/repos/PhilJay/MPAndroidChart/issues/1115/labels{/name}","comments_url":"https://api.github.com/repos/PhilJay/MPAndroidChart/issues/1115/comments","events_url":"https://api.github.com/repos/PhilJay/MPAndroidChart/issues/1115/events","html_url":"https://github.com/PhilJay/MPAndroidChart/issues/1115","id":111770903,"number":1115,"title":"Fragment on Linechart problem","user":{"login":"sanghan4029","id":15139896,"avatar_url":"https://avatars.githubusercontent.com/u/15139896?v=3","gravatar_id":"","url":"https://api.github.com/users/sanghan4029","html_url":"https://github.com/sanghan4029","followers_url":"https://api.github.com/users/sanghan4029/followers","following_url":"https://api.github.com/users/sanghan4029/following{/other_user}","gists_url":"https://api.github.com/users/sanghan4029/gists{/gist_id}","starred_url":"https://api.github.com/users/sanghan4029/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sanghan4029/subscriptions","organizations_url":"https://api.github.com/users/sanghan4029/orgs","repos_url":"https://api.github.com/users/sanghan4029/repos","events_url":"https://api.github.com/users/sanghan4029/events{/privacy}","received_events_url":"https://api.github.com/users/sanghan4029/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-16T06:37:20Z","updated_at":"2015-10-19T06:24:01Z","closed_at":"2015-10-17T10:27:02Z","body":"![image](https://cloud.githubusercontent.com/assets/15139896/10534967/5758e01e-7419-11e5-8422-43698df52f60.png)\r\n \r\nI'm not good at English.\r\n\r\nThe graph is drawn only to that part."},"comment":{"url":"https://api.github.com/repos/PhilJay/MPAndroidChart/issues/comments/149115103","html_url":"https://github.com/PhilJay/MPAndroidChart/issues/1115#issuecomment-149115103","issue_url":"https://api.github.com/repos/PhilJay/MPAndroidChart/issues/1115","id":149115103,"user":{"login":"sanghan4029","id":15139896,"avatar_url":"https://avatars.githubusercontent.com/u/15139896?v=3","gravatar_id":"","url":"https://api.github.com/users/sanghan4029","html_url":"https://github.com/sanghan4029","followers_url":"https://api.github.com/users/sanghan4029/followers","following_url":"https://api.github.com/users/sanghan4029/following{/other_user}","gists_url":"https://api.github.com/users/sanghan4029/gists{/gist_id}","starred_url":"https://api.github.com/users/sanghan4029/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sanghan4029/subscriptions","organizations_url":"https://api.github.com/users/sanghan4029/orgs","repos_url":"https://api.github.com/users/sanghan4029/repos","events_url":"https://api.github.com/users/sanghan4029/events{/privacy}","received_events_url":"https://api.github.com/users/sanghan4029/received_events","type":"User","site_admin":false},"created_at":"2015-10-19T06:24:01Z","updated_at":"2015-10-19T06:24:01Z","body":"xml \r\n\r\n   <LinearLayout\r\n        android:id=\"@+id/background\"\r\n        android:layout_width=\"match_parent\"\r\n        android:layout_height=\"match_parent\"\r\n        android:orientation=\"horizontal\"\r\n        android:gravity=\"center\">\r\n\r\n        <com.github.mikephil.charting.charts.LineChart\r\n            android:layout_width=\"match_parent\"\r\n            android:layout_height=\"400dp\"\r\n            android:id=\"@+id/graph\"\r\n            android:layout_weight=\"1\"\r\n            />\r\n\r\n        <Button\r\n            android:layout_width=\"wrap_content\"\r\n            android:layout_height=\"wrap_content\"\r\n            android:text=\"clicked\"\r\n            android:onClick=\"clicked\"\r\n            android:layout_gravity=\"bottom\"\r\n            android:layout_weight=\"1\"/>\r\n\r\n    </LinearLayout>\r\n\r\nand chart setup.\r\n\r\n        mChart = (LineChart) linearLayout.findViewById(R.id.graph);\r\n        //mChart = new LineChart(null);\r\n\r\n        mChart.setDrawGridBackground(false);\r\n\r\n        // set an alternative background color\r\n        mChart.setBackgroundColor(Color.GRAY);\r\n\r\n        // no description text\r\n        mChart.setDescription(\"\");\r\n        mChart.setNoDataTextDescription(\"You need to provide data for the chart.\");\r\n\r\n        // enable value highlighting\r\n        mChart.setHighlightEnabled(true);\r\n\r\n        // enable touch gestures\r\n        mChart.setTouchEnabled(true);\r\n\r\n        // enable scaling and dragging\r\n        mChart.setDragEnabled(true);\r\n        mChart.setScaleEnabled(true);\r\n\r\n        // if disabled, scaling can be done on x- and y-axis separately\r\n        mChart.setPinchZoom(true);\r\n\r\n        mChart.getAxisRight().setEnabled(true);\r\n        mChart.getAxisRight().setAxisMaxValue(100f);\r\n        mChart.getAxisRight().setAxisMinValue(0f);\r\n        mChart.getAxisLeft().setEnabled(false);\r\n        mChart.getXAxis().setDrawGridLines(true);\r\n        mChart.getXAxis().setDrawAxisLine(true);\r\n        mChart.getXAxis().setSpaceBetweenLabels(30);\r\n        mChart.getXAxis().setAvoidFirstLastClipping(true);\r\n        mChart.setVisibleXRange(50, 50);\r\n        mChart.getTransformer(YAxis.AxisDependency.RIGHT);\r\n        mChart.getXAxis().setAxisLineWidth(10f);\r\n\r\n\r\n        // get the legend (only possible after setting data)\r\n        Legend l = mChart.getLegend();\r\n\r\n        // modify the legend ...\r\n        // l.setPosition(LegendPosition.LEFT_OF_CHART);\r\n        l.setForm(Legend.LegendForm.CIRCLE);\r\n\r\n        mChart.invalidate();\r\n"}}