|
@@ -318,11 +318,15 @@ export default defineComponent({
|
|
|
seasonYdata.push(s_yItem);
|
|
|
}
|
|
|
|
|
|
+ //是否调整tickInterval 公历年份大与1 农历年份大于2
|
|
|
+ let bool_dealx = (state.chartInfo.Calendar === '公历' && chartData.Frequency === '周度' && chartData.DataList.length > 1)
|
|
|
+ || ( state.chartInfo.Calendar === '农历' && chartData.Frequency === '周度' && chartData.DataList.List.length > 2)
|
|
|
+
|
|
|
|
|
|
// 季节图x轴显示月/日 周度指标额外处理时间轴显示
|
|
|
const xAxis = {
|
|
|
...defaultOpts.xAxis,
|
|
|
- tickInterval: chartData.Frequency === '周度' ? 24 * 3600 * 1000 : null,
|
|
|
+ tickInterval: bool_dealx ? 24 * 3600 * 1000 : null,
|
|
|
labels: {
|
|
|
formatter: function (ctx: any) {
|
|
|
return Highcharts.dateFormat('%m/%d', ctx.value);
|