GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Fixes related to legend rendering (issue #1969) · FlyingAndroid/MPAndroidChart@9ccf58f

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • MPChartExample/src/com/xxmassdeveloper/mpchartexample
    • PieChartActivity.java
    • ScatterChartActivity.java
  • MPChartLib/src/main/java/com/github/mikephil/charting
    • components
      • Legend.java
    • renderer
      • LegendRenderer.java
    • utils
      • Utils.java
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎MPChartExample/src/com/xxmassdeveloper/mpchartexample/PieChartActivity.java‎

Copy file name to clipboardExpand all lines: MPChartExample/src/com/xxmassdeveloper/mpchartexample/PieChartActivity.java
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,9 @@ protected void onCreate(Bundle savedInstanceState) {
5252

5353
mSeekBarX = (SeekBar) findViewById(R.id.seekBar1);
5454
mSeekBarY = (SeekBar) findViewById(R.id.seekBar2);
55-
55+
mSeekBarX.setProgress(4);
5656
mSeekBarY.setProgress(10);
5757

58-
mSeekBarX.setOnSeekBarChangeListener(this);
59-
mSeekBarY.setOnSeekBarChangeListener(this);
60-
6158
mChart = (PieChart) findViewById(R.id.chart1);
6259
mChart.setUsePercentValues(true);
6360
mChart.setDescription("");
@@ -95,6 +92,9 @@ protected void onCreate(Bundle savedInstanceState) {
9592
mChart.animateY(1400, Easing.EasingOption.EaseInOutQuad);
9693
// mChart.spin(2000, 0, 360);
9794

95+
mSeekBarX.setOnSeekBarChangeListener(this);
96+
mSeekBarY.setOnSeekBarChangeListener(this);
97+
9898
Legend l = mChart.getLegend();
9999
l.setPosition(LegendPosition.RIGHT_OF_CHART);
100100
l.setXEntrySpace(7f);
Collapse file

‎MPChartExample/src/com/xxmassdeveloper/mpchartexample/ScatterChartActivity.java‎

Copy file name to clipboardExpand all lines: MPChartExample/src/com/xxmassdeveloper/mpchartexample/ScatterChartActivity.java
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ protected void onCreate(Bundle savedInstanceState) {
7474
Legend l = mChart.getLegend();
7575
l.setPosition(LegendPosition.RIGHT_OF_CHART);
7676
l.setTypeface(mTfLight);
77+
l.setXOffset(5f);
7778

7879
YAxis yl = mChart.getAxisLeft();
7980
yl.setTypeface(mTfLight);

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.