From 77688e52fdc2761f17ce24be9704ee25bff2194d Mon Sep 17 00:00:00 2001 From: hxb <hxb@hdlchina.com.cn> Date: 星期三, 04 十二月 2024 13:55:21 +0800 Subject: [PATCH] Merge branch '1.5.0' of http://172.16.1.23:6688/r/~wjc/HDLPhotovoltaicDebugAPP into 1.5.0 --- aa_chart_core/src/main/java/com/github/AAChartModel/AAChartCore/AAChartCreator/AAOptionsConstructor.java | 250 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 248 insertions(+), 2 deletions(-) diff --git a/aa_chart_core/src/main/java/com/github/AAChartModel/AAChartCore/AAChartCreator/AAOptionsConstructor.java b/aa_chart_core/src/main/java/com/github/AAChartModel/AAChartCore/AAChartCreator/AAOptionsConstructor.java index 4cec63a..ffc54eb 100644 --- a/aa_chart_core/src/main/java/com/github/AAChartModel/AAChartCore/AAChartCreator/AAOptionsConstructor.java +++ b/aa_chart_core/src/main/java/com/github/AAChartModel/AAChartCore/AAChartCreator/AAOptionsConstructor.java @@ -42,6 +42,231 @@ * SegmentFault : https://segmentfault.com/u/huanghunbieguan * <p> * ------------------------------------------------------------------------------- + * <p> + * ------------------------------------------------------------------------------- + * <p> + * 馃寱 馃寲 馃寳 馃寴 鉂�鉂�鉂� WARM TIPS!!! 鉂�鉂�鉂� 馃寫 馃寬 馃寭 馃寯 + * <p> + * Please contact me on GitHub,if there are any problems encountered in use. + * GitHub Issues : https://github.com/AAChartModel/AAChartCore/issues + * ------------------------------------------------------------------------------- + * And if you want to contribute for this project, please contact me as well + * GitHub : https://github.com/AAChartModel + * StackOverflow : https://stackoverflow.com/users/7842508/codeforu + * JianShu : http://www.jianshu.com/u/f1e6753d4254 + * SegmentFault : https://segmentfault.com/u/huanghunbieguan + * <p> + * ------------------------------------------------------------------------------- + * <p> + * ------------------------------------------------------------------------------- + * <p> + * 馃寱 馃寲 馃寳 馃寴 鉂�鉂�鉂� WARM TIPS!!! 鉂�鉂�鉂� 馃寫 馃寬 馃寭 馃寯 + * <p> + * Please contact me on GitHub,if there are any problems encountered in use. + * GitHub Issues : https://github.com/AAChartModel/AAChartCore/issues + * ------------------------------------------------------------------------------- + * And if you want to contribute for this project, please contact me as well + * GitHub : https://github.com/AAChartModel + * StackOverflow : https://stackoverflow.com/users/7842508/codeforu + * JianShu : http://www.jianshu.com/u/f1e6753d4254 + * SegmentFault : https://segmentfault.com/u/huanghunbieguan + * <p> + * ------------------------------------------------------------------------------- + * <p> + * ------------------------------------------------------------------------------- + * <p> + * 馃寱 馃寲 馃寳 馃寴 鉂�鉂�鉂� WARM TIPS!!! 鉂�鉂�鉂� 馃寫 馃寬 馃寭 馃寯 + * <p> + * Please contact me on GitHub,if there are any problems encountered in use. + * GitHub Issues : https://github.com/AAChartModel/AAChartCore/issues + * ------------------------------------------------------------------------------- + * And if you want to contribute for this project, please contact me as well + * GitHub : https://github.com/AAChartModel + * StackOverflow : https://stackoverflow.com/users/7842508/codeforu + * JianShu : http://www.jianshu.com/u/f1e6753d4254 + * SegmentFault : https://segmentfault.com/u/huanghunbieguan + * <p> + * ------------------------------------------------------------------------------- + * <p> + * ------------------------------------------------------------------------------- + * <p> + * 馃寱 馃寲 馃寳 馃寴 鉂�鉂�鉂� WARM TIPS!!! 鉂�鉂�鉂� 馃寫 馃寬 馃寭 馃寯 + * <p> + * Please contact me on GitHub,if there are any problems encountered in use. + * GitHub Issues : https://github.com/AAChartModel/AAChartCore/issues + * ------------------------------------------------------------------------------- + * And if you want to contribute for this project, please contact me as well + * GitHub : https://github.com/AAChartModel + * StackOverflow : https://stackoverflow.com/users/7842508/codeforu + * JianShu : http://www.jianshu.com/u/f1e6753d4254 + * SegmentFault : https://segmentfault.com/u/huanghunbieguan + * <p> + * ------------------------------------------------------------------------------- + * <p> + * ------------------------------------------------------------------------------- + * <p> + * 馃寱 馃寲 馃寳 馃寴 鉂�鉂�鉂� WARM TIPS!!! 鉂�鉂�鉂� 馃寫 馃寬 馃寭 馃寯 + * <p> + * Please contact me on GitHub,if there are any problems encountered in use. + * GitHub Issues : https://github.com/AAChartModel/AAChartCore/issues + * ------------------------------------------------------------------------------- + * And if you want to contribute for this project, please contact me as well + * GitHub : https://github.com/AAChartModel + * StackOverflow : https://stackoverflow.com/users/7842508/codeforu + * JianShu : http://www.jianshu.com/u/f1e6753d4254 + * SegmentFault : https://segmentfault.com/u/huanghunbieguan + * <p> + * ------------------------------------------------------------------------------- + * <p> + * ------------------------------------------------------------------------------- + * <p> + * 馃寱 馃寲 馃寳 馃寴 鉂�鉂�鉂� WARM TIPS!!! 鉂�鉂�鉂� 馃寫 馃寬 馃寭 馃寯 + * <p> + * Please contact me on GitHub,if there are any problems encountered in use. + * GitHub Issues : https://github.com/AAChartModel/AAChartCore/issues + * ------------------------------------------------------------------------------- + * And if you want to contribute for this project, please contact me as well + * GitHub : https://github.com/AAChartModel + * StackOverflow : https://stackoverflow.com/users/7842508/codeforu + * JianShu : http://www.jianshu.com/u/f1e6753d4254 + * SegmentFault : https://segmentfault.com/u/huanghunbieguan + * <p> + * ------------------------------------------------------------------------------- + * <p> + * ------------------------------------------------------------------------------- + * <p> + * 馃寱 馃寲 馃寳 馃寴 鉂�鉂�鉂� WARM TIPS!!! 鉂�鉂�鉂� 馃寫 馃寬 馃寭 馃寯 + * <p> + * Please contact me on GitHub,if there are any problems encountered in use. + * GitHub Issues : https://github.com/AAChartModel/AAChartCore/issues + * ------------------------------------------------------------------------------- + * And if you want to contribute for this project, please contact me as well + * GitHub : https://github.com/AAChartModel + * StackOverflow : https://stackoverflow.com/users/7842508/codeforu + * JianShu : http://www.jianshu.com/u/f1e6753d4254 + * SegmentFault : https://segmentfault.com/u/huanghunbieguan + * <p> + * ------------------------------------------------------------------------------- + * <p> + * ------------------------------------------------------------------------------- + * <p> + * 馃寱 馃寲 馃寳 馃寴 鉂�鉂�鉂� WARM TIPS!!! 鉂�鉂�鉂� 馃寫 馃寬 馃寭 馃寯 + * <p> + * Please contact me on GitHub,if there are any problems encountered in use. + * GitHub Issues : https://github.com/AAChartModel/AAChartCore/issues + * ------------------------------------------------------------------------------- + * And if you want to contribute for this project, please contact me as well + * GitHub : https://github.com/AAChartModel + * StackOverflow : https://stackoverflow.com/users/7842508/codeforu + * JianShu : http://www.jianshu.com/u/f1e6753d4254 + * SegmentFault : https://segmentfault.com/u/huanghunbieguan + * <p> + * ------------------------------------------------------------------------------- + * <p> + * ------------------------------------------------------------------------------- + * <p> + * 馃寱 馃寲 馃寳 馃寴 鉂�鉂�鉂� WARM TIPS!!! 鉂�鉂�鉂� 馃寫 馃寬 馃寭 馃寯 + * <p> + * Please contact me on GitHub,if there are any problems encountered in use. + * GitHub Issues : https://github.com/AAChartModel/AAChartCore/issues + * ------------------------------------------------------------------------------- + * And if you want to contribute for this project, please contact me as well + * GitHub : https://github.com/AAChartModel + * StackOverflow : https://stackoverflow.com/users/7842508/codeforu + * JianShu : http://www.jianshu.com/u/f1e6753d4254 + * SegmentFault : https://segmentfault.com/u/huanghunbieguan + * <p> + * ------------------------------------------------------------------------------- + * <p> + * ------------------------------------------------------------------------------- + * <p> + * 馃寱 馃寲 馃寳 馃寴 鉂�鉂�鉂� WARM TIPS!!! 鉂�鉂�鉂� 馃寫 馃寬 馃寭 馃寯 + * <p> + * Please contact me on GitHub,if there are any problems encountered in use. + * GitHub Issues : https://github.com/AAChartModel/AAChartCore/issues + * ------------------------------------------------------------------------------- + * And if you want to contribute for this project, please contact me as well + * GitHub : https://github.com/AAChartModel + * StackOverflow : https://stackoverflow.com/users/7842508/codeforu + * JianShu : http://www.jianshu.com/u/f1e6753d4254 + * SegmentFault : https://segmentfault.com/u/huanghunbieguan + * <p> + * ------------------------------------------------------------------------------- + * <p> + * ------------------------------------------------------------------------------- + * <p> + * 馃寱 馃寲 馃寳 馃寴 鉂�鉂�鉂� WARM TIPS!!! 鉂�鉂�鉂� 馃寫 馃寬 馃寭 馃寯 + * <p> + * Please contact me on GitHub,if there are any problems encountered in use. + * GitHub Issues : https://github.com/AAChartModel/AAChartCore/issues + * ------------------------------------------------------------------------------- + * And if you want to contribute for this project, please contact me as well + * GitHub : https://github.com/AAChartModel + * StackOverflow : https://stackoverflow.com/users/7842508/codeforu + * JianShu : http://www.jianshu.com/u/f1e6753d4254 + * SegmentFault : https://segmentfault.com/u/huanghunbieguan + * <p> + * ------------------------------------------------------------------------------- + * <p> + * ------------------------------------------------------------------------------- + * <p> + * 馃寱 馃寲 馃寳 馃寴 鉂�鉂�鉂� WARM TIPS!!! 鉂�鉂�鉂� 馃寫 馃寬 馃寭 馃寯 + * <p> + * Please contact me on GitHub,if there are any problems encountered in use. + * GitHub Issues : https://github.com/AAChartModel/AAChartCore/issues + * ------------------------------------------------------------------------------- + * And if you want to contribute for this project, please contact me as well + * GitHub : https://github.com/AAChartModel + * StackOverflow : https://stackoverflow.com/users/7842508/codeforu + * JianShu : http://www.jianshu.com/u/f1e6753d4254 + * SegmentFault : https://segmentfault.com/u/huanghunbieguan + * <p> + * ------------------------------------------------------------------------------- + * <p> + * ------------------------------------------------------------------------------- + * <p> + * 馃寱 馃寲 馃寳 馃寴 鉂�鉂�鉂� WARM TIPS!!! 鉂�鉂�鉂� 馃寫 馃寬 馃寭 馃寯 + * <p> + * Please contact me on GitHub,if there are any problems encountered in use. + * GitHub Issues : https://github.com/AAChartModel/AAChartCore/issues + * ------------------------------------------------------------------------------- + * And if you want to contribute for this project, please contact me as well + * GitHub : https://github.com/AAChartModel + * StackOverflow : https://stackoverflow.com/users/7842508/codeforu + * JianShu : http://www.jianshu.com/u/f1e6753d4254 + * SegmentFault : https://segmentfault.com/u/huanghunbieguan + * <p> + * ------------------------------------------------------------------------------- + * <p> + * ------------------------------------------------------------------------------- + * <p> + * 馃寱 馃寲 馃寳 馃寴 鉂�鉂�鉂� WARM TIPS!!! 鉂�鉂�鉂� 馃寫 馃寬 馃寭 馃寯 + * <p> + * Please contact me on GitHub,if there are any problems encountered in use. + * GitHub Issues : https://github.com/AAChartModel/AAChartCore/issues + * ------------------------------------------------------------------------------- + * And if you want to contribute for this project, please contact me as well + * GitHub : https://github.com/AAChartModel + * StackOverflow : https://stackoverflow.com/users/7842508/codeforu + * JianShu : http://www.jianshu.com/u/f1e6753d4254 + * SegmentFault : https://segmentfault.com/u/huanghunbieguan + * <p> + * ------------------------------------------------------------------------------- + * <p> + * ------------------------------------------------------------------------------- + * <p> + * 馃寱 馃寲 馃寳 馃寴 鉂�鉂�鉂� WARM TIPS!!! 鉂�鉂�鉂� 馃寫 馃寬 馃寭 馃寯 + * <p> + * Please contact me on GitHub,if there are any problems encountered in use. + * GitHub Issues : https://github.com/AAChartModel/AAChartCore/issues + * ------------------------------------------------------------------------------- + * And if you want to contribute for this project, please contact me as well + * GitHub : https://github.com/AAChartModel + * StackOverflow : https://stackoverflow.com/users/7842508/codeforu + * JianShu : http://www.jianshu.com/u/f1e6753d4254 + * SegmentFault : https://segmentfault.com/u/huanghunbieguan + * <p> + * ------------------------------------------------------------------------------- */ /** @@ -113,11 +338,32 @@ .align(aaChartModel.subtitleAlign) //鍥捐〃鍓爣棰樻枃鏈按骞冲榻愭柟寮忋�傚彲閫夌殑鍊兼湁 鈥渓eft鈥濓紝鈥漜enter鈥滃拰鈥渞ight鈥濄�� 榛樿鏄細center. .style(aaChartModel.subtitleStyle); + AAStyle aaStyle = new AAStyle(); + aaStyle.fontSize(12); + aaStyle.width(183); + aaStyle.height(49); + aaStyle.color(AAColor.rgbaColor(255, 255, 255, 0.4f)); + + AATooltip aaTooltip = new AATooltip() .enabled(aaChartModel.tooltipEnabled) //鍚敤娴姩鎻愮ず妗� - .shared(true) //澶氱粍鏁版嵁鍏变韩涓�涓诞鍔ㄦ彁绀烘 +// .shared(true) //澶氱粍鏁版嵁鍏变韩涓�涓诞鍔ㄦ彁绀烘 + .backgroundColor(AAColor.rgbaColor(85, 88, 89, 1f)) + .borderRadius(8) + .borderWidth(0) + .style(aaStyle) .valueSuffix(aaChartModel.tooltipValueSuffix) //娴姩鎻愮ず妗嗙殑鍗曚綅鍚嶇О鍚庣紑 - ; + .useHTML(true) + .formatter(" function () {\n" + + " return ' 馃寱 馃寲 馃寳 馃寴 馃寫 馃寬 馃寭 馃寯 <br/> '\n" + + " + ' Support JavaScript Function Just Right Now !!! <br/> '\n" + + " + ' The Gold Price For <b>2020 '\n" + + " + this.x\n" + + " + ' </b> Is <b style='color:#333738'> '\n" + + " + this.y\n" + + " + ' </b> Dollars ';\n" + + " }"); + aaTooltip.valueSuffix(aaChartModel.tooltipValueSuffix).style(new AAStyle().color("#FFFFFF")); AAPlotOptions aaPlotOptions = new AAPlotOptions() .series(new AASeries() -- Gitblit v1.8.0