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

  • Home
  • SEARCH
  • 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 7039871
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T01:51:02+00:00 2026-05-28T01:51:02+00:00

I need to draw a chart based on some values given. This is how

  • 0

I need to draw a chart based on some values given.

This is how my data looks like…
(Date on xAxis and Values on yAxis)

|| Date       || X1 || X2 || X3 ||
|| 01-01-2008 ||  1 ||  2 ||  3 ||
|| 01-01-2008 ||  2 ||  3 ||  4 ||
|| 01-02-2008 ||  1 ||  2 ||  3 ||
|| 01-03-2008 ||  1 ||  2 ||  3 ||
|| 01-04-2008 ||  1 ||  2 ||  3 ||

So now in the graph i need to get a straight vertical line for first two values plotted.

But the line chart from visualization api is showing two separate columns for first two date values…

i.e.,

xAxis - Jan 01, 2008 || Jan 01, 2008 || Feb 01, 2008 || Mar 01, 2008 || Apr01, 2008

instead of

xAxis - Jan 01, 2008 || Feb 01, 2008 || Mar 01, 2008 || Apr01, 2008

and plotting a vertical straight line for Jan 01, 2008

the graph should have vertical straight line for Jan 01, 2008 without omitting the     duplicate values...
so that the two values that are against Jan 01, 2008 are displayed vertically

Please help me solve this.

  • 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-05-28T01:51:02+00:00Added an answer on May 28, 2026 at 1:51 am

    Use the Set collections for storing the values, A set is a collection that contains no duplicate elements. So once you store “Jan 01,2008”, it will not allow duplicates.

    use any implementation class of Set,

    //create a hashset
    HashSet<String> xAxis = new HashSet<String>();
    
    //and store values like this
    
    xAxis.add(date1)
    xAxis.add(date2)
    

    here im assuming you are storing String values, but you can change it according to your need.

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

Sidebar

Related Questions

I need to build a custom designed bar chart that displays some simple data.
I need a javascript (HTML4/5) based library to draw a line chart that has
I need to draw the Pie Chart Manually .I need some basic Ideas to
I need to draw some simple network topology charts, suggestions of some good tools
I need to draw a line one inch long on any device given a
Greetings, I have a table that looks like the following: date value 2007-11-05 134
I need to draw a Gantt-Chart within my iPad App. Are there any frameworks
I need to draw charts using c# and WPF. I did some work using
I am using excel to draw charts from c#, but i need the chart
Using ExtJS4, I need to draw a straight line across a column chart indicating

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.