如何使用mvc图表绘制线宽增加和颜色变化? [英] how to chart line width increase and color changes using mvc chart?

查看:103
本文介绍了如何使用mvc图表绘制线宽增加和颜色变化?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建一个新的图表代码



am create a new chart code for

string greenTheme = @"<Chart BackColor=""#C9DC87"" BackGradientStyle=""TopBottom"" BorderColor=""181, 64, 1"" BorderWidth=""1"" BorderlineDashStyle=""Solid"" Palette=""BrightPastel"" PaletteCustomColors='0,0,255; 0,255,0; 255,0,0; 0,255,255; 255,0,255; 255,255,0' >
                   <ChartAreas>
                   <ChartArea Name=""Default"" _Template_=""All"" BackColor=""Transparent"" BackSecondaryColor=""White"" BorderColor=""64, 64, 64, 64"" BorderDashStyle=""Solid"" ShadowColor=""Transparent"">
                     <AxisY LineColor=""64, 64, 64, 64"">
                       <MajorGrid Interval=""Auto"" LineColor=""64, 64, 64, 64"" />
                       <LabelStyle Font=""Trebuchet MS, 8.25pt, style=Bold"" />
                     </AxisY>
                     <AxisX LineColor=""64, 64, 64, 64"" Interval=""1"">
                       <MajorGrid LineColor=""64, 64, 64, 64"" />
                       <LabelStyle Font=""Trebuchet MS, 8.25pt, style=Bold"" />
                     </AxisX>
                     <Area3DStyle Inclination=""15"" IsClustered=""False"" IsRightAngleAxes=""False"" Perspective=""10"" Rotation=""10"" WallWidth=""0"" />

                   </ChartArea>
                 </ChartAreas>
                 <Legends>
                   <Legend _Template_=""All"" Alignment=""Center""  BackColor=""Transparent""  Docking=""Bottom"" Font=""Trebuchet MS, 10pt, style=Bold"" IsTextAutoFit =""False"" LegendStyle=""Row"">

                   </Legend>
                 </Legends>
                 <BorderSkin SkinStyle=""Emboss"" />
               </Chart>";







var myChart = new Chart(width: 900, height: 400, theme: greenTheme)
                   .AddSeries(Class,
                     xValue: xFieldRange,
                     yValues: 90,80,null,56
                   chartType: type, markerStep: 500)

                   .AddSeries(AVG,
                       xValue: xFieldRange,
                       yValues: null,0,null,23,
                       chartType: type, markerStep: 500)

                   .AddSeries(MARK,
                         xValue: xFieldRange,
                       yValues: null,100,null,23,
                       chartType: type, markerStep: 500)

                     .AddSeries(GOAL,
                         xValue: xFieldRange,
                       yValues: null,10,null,29,
                       chartType: type, markerStep: 500,chartArea :null).AddLegend()
                   .Save(fileName,FILE_FORMAT);







此代码使用但不显示点线和标签

请帮帮我

图表线宽增加和标签显示附近的点值和空值点颜色变化




this code use but not show point line and labels
please help me
chart line width increase and point value near label show and null value point color change

推荐答案

这篇关于如何使用mvc图表绘制线宽增加和颜色变化?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆