彩色图表区域如何取决于时间? [英] How to color chart area depends on time?

查看:57
本文介绍了彩色图表区域如何取决于时间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个折线图。但我想为图表区域的部分着色(如果是早晨)和图表区域的部分,如果它的晚上。我怎么能这样做?

I have created a line graph. but i wanted to color the part of the chart area if it is morning and the part of the chart area if its evening. How can I do that?

推荐答案

Dim ampm As String = DateTime.Now.ToString("tt", System.Globalization.CultureInfo.InvariantCulture)



将为您提供AM或PM,具体取决于该值你可以改变图表


will give you AM or PM, depending on that value you can change the chart


这篇关于彩色图表区域如何取决于时间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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