View3D use wrong color for LineStyle

A forum dedicated to WPF version of LightningChart Ultimate.

Moderator: Arction_LasseP

Posts: 1
Joined: Tue Mar 13, 2018 12:46 pm

View3D use wrong color for LineStyle

Post by PeterH » Tue Mar 13, 2018 12:54 pm

I'm using LightningChartUltimateWPF7 in v7.2.6.1

When I try to change the color of a line drawn in the View3D, it will use a different color. It looks like the color is rounded to one of 8 (or 16?) predefined colors. When I use the color #990000 it will use the color #FF0000 instead.
This is the source code I'm using:

Code: Select all

using System.Windows;
using System.Windows.Media;
using Arction.Wpf.BindableCharting.Series3D;

namespace WpfTestApplication
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
        public MainWindow()

            PointLineSeries3D series = new PointLineSeries3D();
            series.Points.Add(new SeriesPoint3D { X = 0.0, Y = 0.0, Z = 0.0 });
            series.Points.Add(new SeriesPoint3D { X = 10.0, Y = 20.0, Z = 30.0 });
            series.Points.Add(new SeriesPoint3D { X = 20.0, Y = 0.0, Z = -30.0 });
            series.LineStyle.Color = Color.FromRgb(0x99, 0x00, 0x00);
This is how it will look in the WPF test application:
2018-03-13 13_51_17.png
2018-03-13 13_51_17.png (58.03 KiB) Viewed 3099 times
As you see the line color is the #FF0000 red and not the desired #990000 darker red. How can I use the full spectrum of all possible colors for lines in the View3D?

Posts: 383
Joined: Mon Mar 14, 2016 9:22 am

Re: View3D use wrong color for LineStyle

Post by ArctionKestutis » Wed Mar 14, 2018 7:35 am


As far as I see you don't have Subscription for LightningChart. You probably aware that "subscription expiration ends technical support, updates and warranty". If you do have subscription, please contact Arction Support.

The short answer to your question - final color of 3D object is result of multiple items. It is influenced by object's Material properties as well as Light's properties.

Al the best.