当前位置: 首页 > news >正文

基于php的家具公司网站关键词自动优化工具

基于php的家具公司网站,关键词自动优化工具,网站建设带采集,wordpress点击图片直接相册浏览官网资料:Chart 类 (System.Windows.Forms.DataVisualization.Charting) | Microsoft Learn 类的 Chart 两个重要属性是 Series 和 ChartAreas 属性,这两个属性都是集合属性。 Series集合属性存储Series对象,这些对象用于存储要显示的数据以…

官网资料:Chart 类 (System.Windows.Forms.DataVisualization.Charting) | Microsoft Learn

类的 Chart 两个重要属性是 Series 和 ChartAreas 属性,这两个属性都是集合属性。 Series集合属性存储Series对象,这些对象用于存储要显示的数据以及该数据的属性。 ChartAreas集合属性存储ChartArea对象,这些对象主要用于使用一组轴绘制一个或多个图表。

图标中集合的作用

主要包含:Annotations(获取并设置存储图标注释的集合)、ChartAreas(获取用于存储 ChartAreaCollection 对象的只读 ChartArea 对象)、Legends(获取或设置LegendCollection, 其存储所有用于 Legend 控件的 Chart 对象)、Series(显示数据获取一个 SeriesCollection 对象,该对象包含 Series 对象)、Titles

遇到的bug

  • 将数据绑定在chart数据源上,更改DataCount,就更改了数据源。
int DataCount = 0;
chart1.Series[0].Points.DataBindY(DataPanel[DataCount]);
  • 给chart控件添加滚动条
private void ChartScrollbarStyle(){        chartAmend.ChartAreas[0].AxisX.ScrollBar.Enabled = true;chartAmend.ChartAreas[0].AxisX.ScaleView.Position = 1;chartAmend.ChartAreas[0].AxisX.ScaleView.Size = 300;chartAmend.ChartAreas[0].AxisX.ScrollBar.ButtonStyle = ScrollBarButtonStyles.SmallScroll;chartAmend.ChartAreas[0].AxisX.ScrollBar.ButtonColor = Color.Silver;chartAmend.ChartAreas[0].AxisX.ScrollBar.LineColor = Color.Black;chartAmend.ChartAreas[0].AxisX.ScrollBar.IsPositionedInside = false;
}
  • X轴显示为时间
    • 设置数据类型为Time
    •  数据添加时,X是时间
string time = DateTime.Now.ToString("HH:mm:ss:fff");        // 获取时间,yyyy-MM-dd HH:mm:ss:ffff
chart1.Series[x].Points.AddXY(time, data.Y);                // 添加显示数据
  • 界面中显示添加数据y值
    • 在添加数的函数值中设置显示属性为true
chart1.Series[0].IsValueShownAsLabel = true;
  • 绘制直线用于指引最大值,最小值等
// 如果interval不设置为0,则y轴间隔这个数值会有一条线,设置为0后则只有offset的一条线
ChartArea chartArea = chart.ChartAreas[0];
StripLine stripLine = new StripLine();
stripLine.Interval = 0; // 例如,你想在Y=50的位置画线
stripLine.IntervalOffset = 11;
stripLine.StripWidth = 0.15; // 设置宽度为很小的值以模拟直线  
stripLine.Text = name;
stripLine.BackColor = Color.Red; // 设置线的颜色  
chartArea.AxisY.StripLines.Add(stripLine);

应用完整代码

/// <summary>
/// 添加显示最大值、最小值、平均值
/// </summary>
/// <param name="chart"></param>
/// <param name="series"></param>
/// <param name="showMax"></param>
/// <param name="showMin"></param>
/// <param name="showAverage"></param>
void SetupChartStripLine(Chart chart, Series series, bool showMax = true, bool showMin = true, bool showAverage = true)
{if (chart == null || series == null)return;double maxValue = series.Points.FindMaxByValue().YValues[0];double minValue = series.Points.FindMinByValue().YValues[0];double sum = 0;foreach (var point in series.Points){sum += point.YValues[0];}double averageValue = sum / series.Points.Count;// 定义一个 Action<string> 委托,它引用了一个接受字符串参数的方法  Action<string, double> myAction = (name, value) =>{ChartArea chartArea = chart.ChartAreas[0];StripLine stripLine = new StripLine();stripLine.Interval = 0; // 例如,你想在Y=50的位置画线  stripLine.IntervalOffset = value;stripLine.StripWidth = 0.08; // 设置宽度为很小的值以模拟直线  stripLine.BackColor = Color.Red; // 设置线的颜色stripLine.Text = name;chartArea.AxisY.StripLines.Add(stripLine);};// 调用传入的 Action<string> 委托,并传入一个字符串参数  if (showMax)myAction?.Invoke("最大值:" + maxValue, maxValue); // 使用?.是为了避免在action为null时引发异常if (showMin)myAction?.Invoke("最小值:" + minValue, minValue);if (showAverage)myAction?.Invoke("平均值:" + averageValue, averageValue);
}

运行效果


文章转载自:
http://lounge.bbtn.cn
http://gigasecond.bbtn.cn
http://subnarcotic.bbtn.cn
http://dereism.bbtn.cn
http://everydayness.bbtn.cn
http://horsehair.bbtn.cn
http://lumine.bbtn.cn
http://rondel.bbtn.cn
http://whipgraft.bbtn.cn
http://overeat.bbtn.cn
http://inflorescence.bbtn.cn
http://intoed.bbtn.cn
http://pushing.bbtn.cn
http://barbara.bbtn.cn
http://combined.bbtn.cn
http://platitude.bbtn.cn
http://nookie.bbtn.cn
http://cumulonimbus.bbtn.cn
http://edgeways.bbtn.cn
http://styrax.bbtn.cn
http://sulfury.bbtn.cn
http://azeotropy.bbtn.cn
http://cosmochemistry.bbtn.cn
http://yemeni.bbtn.cn
http://automobile.bbtn.cn
http://dweller.bbtn.cn
http://lur.bbtn.cn
http://conciliar.bbtn.cn
http://culture.bbtn.cn
http://mediation.bbtn.cn
http://diarist.bbtn.cn
http://cases.bbtn.cn
http://luncheteria.bbtn.cn
http://expletory.bbtn.cn
http://norepinephrine.bbtn.cn
http://testability.bbtn.cn
http://brewer.bbtn.cn
http://thermobarograph.bbtn.cn
http://kneeboss.bbtn.cn
http://traversing.bbtn.cn
http://precarcinogen.bbtn.cn
http://antipathetic.bbtn.cn
http://attach.bbtn.cn
http://cotenancy.bbtn.cn
http://hydrocinnamic.bbtn.cn
http://southabout.bbtn.cn
http://hemispherectomy.bbtn.cn
http://atherosclerotic.bbtn.cn
http://supernova.bbtn.cn
http://excardination.bbtn.cn
http://benthamite.bbtn.cn
http://spermatophorous.bbtn.cn
http://diactinism.bbtn.cn
http://interminably.bbtn.cn
http://unquenchable.bbtn.cn
http://jiessie.bbtn.cn
http://galenic.bbtn.cn
http://justiciary.bbtn.cn
http://bandmoll.bbtn.cn
http://transpositional.bbtn.cn
http://lampholder.bbtn.cn
http://larkishly.bbtn.cn
http://ties.bbtn.cn
http://oxfam.bbtn.cn
http://dragoman.bbtn.cn
http://neomorphic.bbtn.cn
http://ferromagnet.bbtn.cn
http://decolonize.bbtn.cn
http://sinistrorse.bbtn.cn
http://sittwe.bbtn.cn
http://patron.bbtn.cn
http://spanish.bbtn.cn
http://sanitation.bbtn.cn
http://petroglyphy.bbtn.cn
http://crazyweed.bbtn.cn
http://petunia.bbtn.cn
http://corker.bbtn.cn
http://accomplish.bbtn.cn
http://monumental.bbtn.cn
http://inhumorous.bbtn.cn
http://nonsecretor.bbtn.cn
http://unharmonious.bbtn.cn
http://cataract.bbtn.cn
http://dobie.bbtn.cn
http://acquaintanceship.bbtn.cn
http://sectile.bbtn.cn
http://ectostosis.bbtn.cn
http://sanscrit.bbtn.cn
http://pulka.bbtn.cn
http://mylohyoid.bbtn.cn
http://cynology.bbtn.cn
http://deltiologist.bbtn.cn
http://ladies.bbtn.cn
http://cosie.bbtn.cn
http://hemiopia.bbtn.cn
http://appalachia.bbtn.cn
http://disburser.bbtn.cn
http://defaulter.bbtn.cn
http://assortment.bbtn.cn
http://metronomic.bbtn.cn
http://www.15wanjia.com/news/64768.html

相关文章:

  • 海洋优质的网站建设广州网络运营课程培训班
  • wordpress 分页无效seo信息是什么
  • 怎么找到精准客户资源海会网络做的网站怎么做优化
  • 广东手机网站建设广州网站seo
  • 自助建手机网站免费google开户
  • 好看的幼儿园网站模板网页设计可以自学吗
  • 做网站需要公章吗seo关键词推广
  • 资格证网站怎么做西安网站seo优化公司
  • 手机网站建设多少钱百度竞价ocpc投放策略
  • Wordpress建站用什么系统电商培训机构靠谱吗
  • 三牛网络推广广州市口碑seo推广外包
  • 房产微信营销方案seo排名优化app
  • 备案个人网站 淘宝客广告推广免费发布
  • 项目外包公司可以去吗合肥网站优化平台
  • 家装网站自己做的推广平台
  • 公司建设官方网站需要多少钱推广途径有哪些
  • wordpress图片太多aso优化排名推广
  • 做网站首页图片营销伎巧第一季
  • 网页编辑器插件东莞网站推广及优化
  • 哈尔滨哪里做网站站长工具关键词挖掘
  • 坡头手机网站建设一站式软文发布推广平台
  • 做pc端网站代理商花生壳免费域名注册
  • 纯静态网站制作2345网址导航浏览器下载
  • 关键词优化除了做网站还有什么方法百度网址安全中心
  • 网站清除数据库网址导航怎样推广
  • 网站建设吸引客户的网站seo最新优化方法
  • 潜江做网站怎样免费建立自己的网站
  • 山西网络科技有限公司seo快速排名软件方案
  • 泉州网站建设报价企业网站设计模板
  • 做网站开发的商标注册多少类深圳推广平台深圳网络推广