Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

VB: Diagramm

Empfohlene Antworten

Veröffentlicht

Hallo,

weiss jemand von euch vll., wie ich die Farben der Balken eines mit MSChart erstellten Diagramms ändern kann?

Danke & viele Grüße,

Chris;-)

Hi

Zeichne doch ein Makro auf wie du die Farben des Diagramms manuell änderst... wenn du dann in den quellcode des Makros schaust siehst du wie man das in VB macht ;)

oh sorry hab ich wohl zu schnell gelesen :rolleyes: ich dachte du willst in VBA ein Excel diagramm ändern wie man das in VB macht mit dem MSChart weiß ich leider nicht

sry :rolleyes:

versuch es mal damit

Private Sub cmdFormat_Click()

' First, change the chart type to a 3D chart to

' see all the parts of the plot.

MSChart1.chartType = VtChChartType3dArea

' Color the backdrop light blue using

' the Plot object.

With MSChart1.Plot.Backdrop

' No color will appear unless you set the style

' property to VtFillStyleBrush.

.Fill.Style = VtFillStyleBrush

.Fill.Brush.FillColor.Set 100, 255, 200

' Add a border.

.Frame.Style = VtFrameStyleThickInner

' Set style to show a shadow.

.Shadow.Style = VtShadowStyleDrop

End With

' Color the wall of the plot yellow.

With MSChart1.Plot

' Set the style to solid.

.Wall.Brush.Style = VtBrushStyleSolid

' Set the color to yellow.

.Wall.Brush.FillColor.Set 255, 255, 0

End With

With MSChart1.Plot ' Color the plot base blue.

.PlotBase.BaseHeight = 200

.PlotBase.Brush.Style = VtBrushStyleSolid

.PlotBase.Brush.FillColor.Set 0, 0, 255

End With

End Sub

Guido

schau mal in Richtung VTColor.Set(R,G,B)

sollte hiermit evtl. möglich sein kann es aber nicht genau sagen da ich selber noch nie mit dem MSChart Control gearbeitet habe.

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.