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. Excel line-column combination chart using C#.

Excel line-column combination chart using C#.

Scheduled Pinned Locked Moved C#
csharptutorialquestion
4 Posts 2 Posters 0 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.
  • U Offline
    U Offline
    User 9123917
    wrote on last edited by
    #1

    I am trying to create an Excel line-column combination chart using C#. I know how to create a line chart or a column chart but I don't know how to create a combined chart. Could anyone please point me a direction or provide a short sample code on how to create such chart? Thanks in advance.

    D 1 Reply Last reply
    0
    • U User 9123917

      I am trying to create an Excel line-column combination chart using C#. I know how to create a line chart or a column chart but I don't know how to create a combined chart. Could anyone please point me a direction or provide a short sample code on how to create such chart? Thanks in advance.

      D Offline
      D Offline
      dan sh
      wrote on last edited by
      #2

      You can achieve this adding SecondaryAxis to the chart.

      "The worst code you'll come across is code you wrote last year.", wizardzz[^]

      U 1 Reply Last reply
      0
      • D dan sh

        You can achieve this adding SecondaryAxis to the chart.

        "The worst code you'll come across is code you wrote last year.", wizardzz[^]

        U Offline
        U Offline
        User 9123917
        wrote on last edited by
        #3

        Can you show me example code? I have tried and got error. myChart.Series("Series 2").XAxisType = AxisType.Secondary;

        D 1 Reply Last reply
        0
        • U User 9123917

          Can you show me example code? I have tried and got error. myChart.Series("Series 2").XAxisType = AxisType.Secondary;

          D Offline
          D Offline
          dan sh
          wrote on last edited by
          #4

          Which office version are you using? Basically, you will have to create a new chart type and then add a series to it. You will then have to add this to your Chart.

          "The worst code you'll come across is code you wrote last year.", wizardzz[^]

          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