Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9298513
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T22:20:39+00:00 2026-06-18T22:20:39+00:00

I am using AchartEngine to draw graph with multiple lines (linechart). When zooming in,

  • 0

I am using AchartEngine to draw graph with multiple lines (linechart). When zooming in, lines between points disappear and only points stay visible. Did anyone had such problem ?

enter image description here

enter image description here

Code is nothing special.

XYMultipleSeriesDataset mDataset = new XYMultipleSeriesDataset();
XYMultipleSeriesRenderer mRenderer = new XYMultipleSeriesRenderer();

    XYSeries IVseries=new XYValueSeries("IV");
    XYSeries IV_stc_series=new XYValueSeries("IVstc");


    for(double i=0;i<6;i=i+0.1){
        IVseries.add(sin(i),cos(i));
        IV_stc_series.add(2*sin(i),cos(i));
    }

    mDataset.addSeries(IVseries);
    mDataset.addSeries(IV_stc_series);

    XYSeriesRenderer IVrenderer = new XYSeriesRenderer ();
    IVrenderer.setFillPoints(true);
    IVrenderer.setPointStyle(PointStyle.TRIANGLE);
    IVrenderer.setLineWidth(5);
    IVrenderer.setColor(Color.GREEN);
    mRenderer.addSeriesRenderer(IVrenderer);

    XYSeriesRenderer IV_stc_renderer = new XYSeriesRenderer ();
    IV_stc_renderer.setFillPoints(true);
    IV_stc_renderer.setPointStyle(PointStyle.X);
    IV_stc_renderer.setLineWidth(5);
    IV_stc_renderer.setColor(Color.RED);
    mRenderer.addSeriesRenderer(IV_stc_renderer);

    mRenderer.setPanEnabled(true,true);
    mRenderer.setZoomEnabled(true, true);
    mRenderer.setZoomButtonsVisible(true);
    mRenderer.setXLabels(20);
    mRenderer.setYLabels(20);
    mRenderer.setShowGrid(true);
    mRenderer.setGridColor(Color.BLACK);
    mRenderer.setApplyBackgroundColor(true);
    mRenderer.setBackgroundColor(Color.WHITE);

    mChartView = ChartFactory.getLineChartView(context, mDataset, mRenderer);
    layout.addView(mChartView, new LinearLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT,
            LinearLayout.LayoutParams.MATCH_PARENT));
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T22:20:40+00:00Added an answer on June 18, 2026 at 10:20 pm

    Eventually i resolved this by disabling hardware acceleration in AndroidManifest.xml

    android:hardwareAccelerated=”false”

    This way lines are always rendered no mater how much i zoom in.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Actually, in my app, I have created a graph using achartEngine . In these
I'm using ChartFactory.getTimeChartView method from the achartengine excellent library. I show only the last
I'm using the achartengine to draw chart on Adnroid application, so when i call
I have an issue which like to overcome. I'm using the achartengine to draw
I am Using achartEngine to plot stacked bar-graph.My plot for X an Y Values
Iam using AChartEngine Stacked Bar Chart. Can i add spacing between X-Axis Title and
I am using Achartengine to create graph in my app. I want that my
I am using Achartengine to generate a stacked bar graph. It works fine and
i m new to android. I m using Achartengine to plot a dynamic graph
I am currently trying to create a graph using AChartEngine containing two y-axis (one

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.