Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. how to accelebrate chart when have many series?

how to accelebrate chart when have many series?

Scheduled Pinned Locked Moved C#
performancetutorialquestion
11 Posts 5 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    smallkubi
    wrote on last edited by
    #1

    Hi, when i use chart to plot, i have 10 line series and each have 1000 points. i use " chart.series.add("series[i]")" to add series in chart. But when they are all in chart, chart speed is slow and delay, Zoom in and annotation are all delayed. Can above quesiton be solved?

    D Richard DeemingR 2 Replies Last reply
    0
    • S smallkubi

      Hi, when i use chart to plot, i have 10 line series and each have 1000 points. i use " chart.series.add("series[i]")" to add series in chart. But when they are all in chart, chart speed is slow and delay, Zoom in and annotation are all delayed. Can above quesiton be solved?

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      Yeah. Don't fill the chart with 10,000 points. Reduce the dataset down to what's important and the redraw will speed up dramatically. If your graph area is only 300 pixels wide, why are you stuffing in 3 times as many points as it can show?

      A guide to posting questions on CodeProject

      Click this: Asking questions is a skill. Seriously, do it.
      Dave Kreskowiak

      S 1 Reply Last reply
      0
      • D Dave Kreskowiak

        Yeah. Don't fill the chart with 10,000 points. Reduce the dataset down to what's important and the redraw will speed up dramatically. If your graph area is only 300 pixels wide, why are you stuffing in 3 times as many points as it can show?

        A guide to posting questions on CodeProject

        Click this: Asking questions is a skill. Seriously, do it.
        Dave Kreskowiak

        S Offline
        S Offline
        smallkubi
        wrote on last edited by
        #3

        Yes,you are right,thank you. I didnot care of the pixels wide, because i need pricision and smooth curve, so i use 1000 points. have any other solution to solve it? because if i use 300 points, but maybe i need plot 30 series in chartarea, how to solve it greatly ?

        D 1 Reply Last reply
        0
        • S smallkubi

          Hi, when i use chart to plot, i have 10 line series and each have 1000 points. i use " chart.series.add("series[i]")" to add series in chart. But when they are all in chart, chart speed is slow and delay, Zoom in and annotation are all delayed. Can above quesiton be solved?

          Richard DeemingR Offline
          Richard DeemingR Offline
          Richard Deeming
          wrote on last edited by
          #4

          Which of the hundreds of different chart controls / libraries are you using? And, as Dave said, a chart with 10,000 points is never going to perform well.


          "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

          "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

          J 1 Reply Last reply
          0
          • Richard DeemingR Richard Deeming

            Which of the hundreds of different chart controls / libraries are you using? And, as Dave said, a chart with 10,000 points is never going to perform well.


            "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

            J Offline
            J Offline
            John Torjo
            wrote on last edited by
            #5

            As Dave and and Richard said, there are quite a few libraries out there, and adding too many points is probably not a good idea. However, it may be that the library is optimized for this. Have you checked the lib's documentation? Best, John

            -- LogWizard Meet the Log Viewer that makes monitoring log files a joy!

            Richard DeemingR 1 Reply Last reply
            0
            • J John Torjo

              As Dave and and Richard said, there are quite a few libraries out there, and adding too many points is probably not a good idea. However, it may be that the library is optimized for this. Have you checked the lib's documentation? Best, John

              -- LogWizard Meet the Log Viewer that makes monitoring log files a joy!

              Richard DeemingR Offline
              Richard DeemingR Offline
              Richard Deeming
              wrote on last edited by
              #6

              Why are you replying to me instead of the OP? :confused:


              "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

              "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

              J P 2 Replies Last reply
              0
              • Richard DeemingR Richard Deeming

                Why are you replying to me instead of the OP? :confused:


                "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

                J Offline
                J Offline
                John Torjo
                wrote on last edited by
                #7

                Sorry, it was my mistake.

                -- LogWizard Meet the Log Viewer that makes monitoring log files a joy!

                1 Reply Last reply
                0
                • S smallkubi

                  Yes,you are right,thank you. I didnot care of the pixels wide, because i need pricision and smooth curve, so i use 1000 points. have any other solution to solve it? because if i use 300 points, but maybe i need plot 30 series in chartarea, how to solve it greatly ?

                  D Offline
                  D Offline
                  Dave Kreskowiak
                  wrote on last edited by
                  #8

                  Ummm, perhaps you didn't hear me... The ONLY way to speed up the drawing of the chart, using any off-the-shelf charting library, is to reduce the number of points. Now, if you tried to roll-your-own charting library, you could put in some optimizations specific to your requirements to speed things up a bit. No matter what you do the BIGGEST speed boost is to not draw so many points.

                  A guide to posting questions on CodeProject

                  Click this: Asking questions is a skill. Seriously, do it.
                  Dave Kreskowiak

                  S 1 Reply Last reply
                  0
                  • Richard DeemingR Richard Deeming

                    Why are you replying to me instead of the OP? :confused:


                    "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

                    P Offline
                    P Offline
                    Pete OHanlon
                    wrote on last edited by
                    #9

                    You might not know what you said.

                    This space for rent

                    1 Reply Last reply
                    0
                    • D Dave Kreskowiak

                      Ummm, perhaps you didn't hear me... The ONLY way to speed up the drawing of the chart, using any off-the-shelf charting library, is to reduce the number of points. Now, if you tried to roll-your-own charting library, you could put in some optimizations specific to your requirements to speed things up a bit. No matter what you do the BIGGEST speed boost is to not draw so many points.

                      A guide to posting questions on CodeProject

                      Click this: Asking questions is a skill. Seriously, do it.
                      Dave Kreskowiak

                      S Offline
                      S Offline
                      smallkubi
                      wrote on last edited by
                      #10

                      Thank you all, i will adopt you good idea, to reduce points.

                      S 1 Reply Last reply
                      0
                      • S smallkubi

                        Thank you all, i will adopt you good idea, to reduce points.

                        S Offline
                        S Offline
                        smallkubi
                        wrote on last edited by
                        #11

                        Oh,i found that if 10000points in 1 series, the chart will not be delay. So i want to know,how to make series, that 1000 points be in one line, other 1000points be another line.... make 10 series type ,but in 1 series collection?

                        1 Reply Last reply
                        0
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • World
                        • Users
                        • Groups