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 6918055
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T09:48:36+00:00 2026-05-27T09:48:36+00:00

I found an implementation of a parallel coordinates application in c#. What I am

  • 0

I found an implementation of a parallel coordinates application in c#. What I am trying to achieve is that I want to be able to read a CSV file and map the values and Labels onto the coordinates. The method mapping the values is assigning the values manually. Instead, I want those values to be read from the CSV file.

Here is the current method:

public void DataBind()
        {
            IList<DemoInfo> infos = new List<DemoInfo>();

            for (int i = 0; i < ObjectsCount; i++)
            {
                var x = new DemoInfo();
                x.X = m_Random.NextDouble() * 400 - 100;
                x.Y = m_Random.NextDouble() * 500 - 100;
                x.Z = m_Random.NextDouble() * 600 - 300;
                x.V = m_Random.NextDouble() * 800 - 100;
                x.K = 1.0;
                //x.M = i % 2 == 0 ? 1.0 : -20.0;
                x.M = i;
                x.Tag = i + 1;

                infos.Add(x);
            } 



var dataSource = new MultiDimensionalDataSource<DemoInfo>(infos, 6);
            dataSource.MapDimension(0, info => info.X);
            dataSource.MapDimension(1, info => info.Y);
            dataSource.MapDimension(2, info => info.Z);
            dataSource.MapDimension(3, info => info.V);
            dataSource.MapDimension(4, info => info.K);
            dataSource.MapDimension(5, info => info.M);

            //dataSource.MapDimensionToOpacity(0, 0.5);
            dataSource.MapTag(info => info.Tag);

            dataSource.Labels[0] = "X";
            dataSource.Labels[1] = "Y";
            dataSource.Labels[2] = "Z";
            dataSource.Labels[3] = "V";
            dataSource.Labels[4] = "K";
            dataSource.Labels[5] = "M";
            dataSource.HelperAxisLabel = "Helper axis";

            DataSource = dataSource;
        }

Here is some of the data in the CSV File:

SWW Institutions        Undergradutes       Postgraduates
University College      2085            250 
Metropolitan University 4715            1135

Would really appreciate your help !!

Thanks.

  • 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-27T09:48:37+00:00Added an answer on May 27, 2026 at 9:48 am

    I am not sure how your CSV file is mapping to the DemoInfo class. Also, the example below is based on a CSV file, but your sample data is showing a TSV file. If it is a TSV file, just replace ‘,’ with ‘/t’. Also, something watch out for is if any strings contain your delimiter, such as a SWW Institutions string like “Univeristy, Madison”.

    You can open the file to read the lines of text and split the line based on your delimiter.

    using (var sr = File.OpenText(path))
    {
      var line = string.Empty;
      while ((line = sr.ReadLine()) != null)
      {
        var dataPoints = line.Split(',');
        // Create Your Data Mappings Here
        // dataPoints[0]...
      }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to encrypt a file using the implementation I found here: http://msdn.microsoft.com/en-us/magazine/cc164055.aspx This
It looks easy, but I found the implementation tricky. I need that for a
Trying to get my mind around google protobuf. I found some implementation of protobuf
Found the following in an Oracle-based application that we're migrating (generalized) : SELECT Table1.Category1,
I found an implementation of a priority queue that primarily uses CFBinaryHeap to work.
I've found that the implementation of the GetBytes function in .net framework is something
i'm using this example implementation found at http://tangentsoft.net/wskfaq/examples/basics/select-server.html This is doing most of what
I was looking at C# collection initializers and found the implementation to be very
In Matters Computational I found this interesting linear search implementation (it's actually my Java
What is the best implementation of Markdown for C or C++? I found these

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.