Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to plot override without bar data visible

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How to plot override without bar data visible

    Hi there,

    I know that plot override is not supported here however this is a question that pertains to other coding situations as well. I'm sure someone can point me in the right direction

    Basically as you can see by the image attached I have plotted today's and yesterday's bars to the right of the chart. I do not want the primary data series (Daily bars) visible (the white bars on the left). When I set the primary data series (Daily bars) to Color.Transparent OR I scroll the Daily bars off the chart, my custom plots disappear and my scaling disappears, as you can see by the image.

    I'm using:

    Code:
    ChartControl.GetYByValue(this, price);
    as suggested by koganam here

    I "sort of" understand why this is happening, but how to prevent it? Do I need to add an "invisible" High or Low plot set to AutoScale = True and THEN set the data series bars to Color.Transparent?

    Any tips in the right direction would be just great. Thank you!

    Simon
    Attached Files

    #2
    Hi Simon, a transparent plot will have special handling so will likely not help here. I think you could set a dummy plot to the chart's background color (so it would not be visible) and have autoscale enabled for it? That way you should retain your scale.

    Comment


      #3
      Okay, thanks Bertrand. That makes sense.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by sjsj2732, 03-23-2026, 04:31 AM
      0 responses
      76 views
      0 likes
      Last Post sjsj2732  
      Started by NullPointStrategies, 03-13-2026, 05:17 AM
      0 responses
      313 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      311 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      149 views
      1 like
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      111 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Working...
      X