Line Chart Color (Series Color / Style of RDLC/RDL report)

My line chart displays all lines in a single color (the series color). I'd like a single color per item in the series just like the bar chart. Is there a way to change this? Or is the only differentiation the markers?

 

i am trying to do the same thing too.
i was able to  for a 100% stacked column chart, using multiple data values, and still specify a color for each value in the stacked column chart (3 of them in my case).
however for my current line chart with only 1 data value, the default colors are automatic according to a color scheme, but i want to be able to define the colors. i was thinking of the following methods using coding under the chart properties -› data -› values (double click the value item) -› edit chart value -› appearance -› series style -› border and line -› color -› ƒx
(refer to code snippet)
and the color will be hardcoded to the value string of the data. alternative you can put it as a database column. these are just my ideas. would be great if someone out there has a better solution ... always open to learn.
rev-boy

=IIf(
        Fields!DATA_COLUMN.Value = "Type 1", "Green",
        IIf
        (
            Fields!DATA_COLUMN.Value = "Type 2", "Red",
            IIf
            (
                Fields!DATA_COLUMN.Value = "Type 3", "Brown", "Black"
            )
        )
    )

图表序列的颜色设置

http://social.msdn.microsoft.com/forums/en-US/sqlreportingservices/thread/63500dff-3a01-4912-817a-40c7cdb78865/

posted @   emanlee  阅读(1002)  评论(0编辑  收藏  举报
编辑推荐:
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
阅读排行:
· 开源Multi-agent AI智能体框架aevatar.ai,欢迎大家贡献代码
· Manus重磅发布:全球首款通用AI代理技术深度解析与实战指南
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· 没有Manus邀请码?试试免邀请码的MGX或者开源的OpenManus吧
· 园子的第一款AI主题卫衣上架——"HELLO! HOW CAN I ASSIST YOU TODAY
历史上的今天:
2007-08-31 2008秋季-计算机软件基础-PPT课件-第一章 软件工程
2007-08-31 2008秋季-计算机软件基础-PPT课件-第四章 查找与排序
2007-08-31 2008秋季-计算机软件基础-第三章 非线性数据结构(PPT课件)
点击右上角即可分享
微信分享提示