From d76b0e40e5bb127fd33aa1f7842447a1df0628d5 Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期日, 30 七月 2023 22:16:34 +0800
Subject: [PATCH] Update PublicAssmeblyBLL.cs
---
HDL_ON/UI/UI2/FuntionControlView/EnvironmentalScience/EchartsOption_BrokenLine.cs | 89 ++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 89 insertions(+), 0 deletions(-)
diff --git a/HDL_ON/UI/UI2/FuntionControlView/EnvironmentalScience/EchartsOption_BrokenLine.cs b/HDL_ON/UI/UI2/FuntionControlView/EnvironmentalScience/EchartsOption_BrokenLine.cs
index 08d7db5..5ff7e8a 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/EnvironmentalScience/EchartsOption_BrokenLine.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/EnvironmentalScience/EchartsOption_BrokenLine.cs
@@ -43,6 +43,23 @@
}
/// <summary>
+ ///
+ /// </summary>
+ /// <param name="displayScale">鏄剧ず姣斾緥 0-100锛屾瘮濡傝缃簡30锛屽彧鏄剧ず30%锛屽彲浠ュ乏鍙虫嫋鍔ㄦ樉绀哄叾浠�</param>
+ /// <returns></returns>
+ public string InitOption(int displayScale)
+ {
+ //缁勮Value
+ var newstring = optionString2.Replace("{0}", XvalueText);
+ newstring = newstring.Replace("{1}", YvalueText);
+ newstring = newstring.Replace("{10}", xTitle);
+ newstring = newstring.Replace("{20}", yTitle);
+ newstring = newstring.Replace("{30}", displayScale.ToString());
+ newstring = newstring.Replace(",,", ",");
+ return newstring;
+ }
+
+ /// <summary>
/// 缁勮x杞存枃鏈�
/// </summary>
/// <param name="xData"></param>
@@ -208,6 +225,78 @@
}";
#endif
+
+
+#if __IOS__
+ public string optionString2 = @"{
+ tooltip: {
+ trigger: 'axis'
+ },
+ grid: {
+ top: '10%',
+ left: '10%',
+ right: '10%',
+ bottom: '10%',
+ },
+ xAxis: {
+ name: '{10}',
+ type: 'category',
+ boundaryGap: false,
+ data: [{0}],
+ axisLabel : {
+ fontSize:30,
+ },
+ },
+ yAxis: {
+ name: '{20}',
+ type: 'value',
+ axisLabel : {
+ fontSize:30,
+ },
+ },
+ dataZoom: [{
+ type: 'inside',
+ xAxisIndex: 0,
+ start: 0,
+ end: {30}
+ }],
+ series: [
+ {1}
+ ]
+ }";
+#else
+ public string optionString2 = @"{
+ tooltip: {
+ trigger: 'axis'
+ },
+ grid: {
+ top: '15%',
+ left: '13%',
+ right: '12%',
+ bottom: '10%',
+ },
+ xAxis: {
+ type: 'category',
+ boundaryGap: false,
+ data: [{0}],
+ name: '{10}'
+ },
+ yAxis: {
+ type: 'value',
+ name: '{20}'
+ },
+ dataZoom: [{
+ type: 'inside',
+ xAxisIndex: 0,
+ start: 0,
+ end: {30}
+ }],
+ series: [
+ {1}
+ ]
+ }";
+#endif
+
/// <summary>
/// 棰滆壊鍒楄〃
/// </summary>
--
Gitblit v1.8.0