We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm using half pie chart with width = 1/2 screen size and height = 200, but my chart no full view. I fix my problem in Android by code below.
private void moveOffScreen(final RelativeLayout lnlWrapPieChart, final PieChart mPieChart) { ViewTreeObserver vto = lnlWrapPieChart.getViewTreeObserver(); vto.addOnGlobalLayoutListener(new ViewTreeObserver.OnGlobalLayoutListener() { @Override public void onGlobalLayout() { if (Build.VERSION.SDK_INT < Build.VERSION_CODES.JELLY_BEAN) { lnlWrapPieChart.getViewTreeObserver().removeGlobalOnLayoutListener(this); } else { lnlWrapPieChart.getViewTreeObserver().removeOnGlobalLayoutListener(this); } int height = lnlWrapPieChart.getMeasuredHeight(); int offset = (int)(height * 1); /* percent to move */ RelativeLayout.LayoutParams rlParams = (RelativeLayout.LayoutParams)mPieChart.getLayoutParams(); rlParams.setMargins(0, 0, 0, -offset); mPieChart.setLayoutParams(rlParams); } }); }
Please help for me this problem. I'm using swift 3. Thank you.
The text was updated successfully, but these errors were encountered:
Have no idea what are you asking using half pie chart with width = 1/2 screen size and height = 200, but my chart no full view.
Please refer ChartsDemo how to use it.
Sorry, something went wrong.
No branches or pull requests
I'm using half pie chart with width = 1/2 screen size and height = 200, but my chart no full view. I fix my problem in Android by code below.
Please help for me this problem. I'm using swift 3. Thank you.
The text was updated successfully, but these errors were encountered: