@orbcharts/plugins-basic 3.0.0-alpha.51 → 3.0.0-alpha.52

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orbcharts/plugins-basic",
3
- "version": "3.0.0-alpha.51",
3
+ "version": "3.0.0-alpha.52",
4
4
  "description": "plugins for OrbCharts",
5
5
  "author": "Blue Planet Inc.",
6
6
  "license": "Apache-2.0",
@@ -122,11 +122,7 @@ function renderAxis ({ selection, xAxisClassName, groupingLabelClassName, params
122
122
 
123
123
  // 計算所有範圍內groupLabels數量(顯示所有刻度)
124
124
  const allTicksAmount = Math.floor(groupScaleDomain[1]) - Math.ceil(groupScaleDomain[0]) + 1
125
- console.log(params.ticks, params.ticks === 'all'
126
- ? allTicksAmount
127
- : params.ticks > allTicksAmount
128
- ? allTicksAmount // 不顯示超過groupLabels數量的刻度
129
- : params.ticks)
125
+
130
126
  // 設定X軸刻度
131
127
  // const xAxis = d3.axisBottom(groupScale)
132
128
  const xAxis = d3.axisTop(groupScale)
@@ -485,7 +485,7 @@ export const createBaseLineAreas: BasePluginFn<BaseLineAreasContext> = (pluginNa
485
485
  data.pathSelectionArr.forEach(pathSelection => {
486
486
  pathSelection
487
487
  .on('mouseover', (event, datum) => {
488
- event.stopPropagation()
488
+ // event.stopPropagation()
489
489
 
490
490
  const seriesLabel = datum[0] ? datum[0].seriesLabel : ''
491
491
  const { groupIndex, groupLabel } = data.gridGroupPositionFn(event)
@@ -511,7 +511,7 @@ export const createBaseLineAreas: BasePluginFn<BaseLineAreasContext> = (pluginNa
511
511
  })
512
512
  })
513
513
  .on('mousemove', (event, datum) => {
514
- event.stopPropagation()
514
+ // event.stopPropagation()
515
515
 
516
516
  const seriesLabel = datum[0] ? datum[0].seriesLabel : ''
517
517
  const { groupIndex, groupLabel } = data.gridGroupPositionFn(event)
@@ -537,7 +537,7 @@ export const createBaseLineAreas: BasePluginFn<BaseLineAreasContext> = (pluginNa
537
537
  })
538
538
  })
539
539
  .on('mouseout', (event, datum) => {
540
- event.stopPropagation()
540
+ // event.stopPropagation()
541
541
 
542
542
  const seriesLabel = datum[0] ? datum[0].seriesLabel : ''
543
543
  const { groupIndex, groupLabel } = data.gridGroupPositionFn(event)
@@ -563,7 +563,7 @@ export const createBaseLineAreas: BasePluginFn<BaseLineAreasContext> = (pluginNa
563
563
  })
564
564
  })
565
565
  .on('click', (event, datum) => {
566
- event.stopPropagation()
566
+ // event.stopPropagation()
567
567
 
568
568
  const seriesLabel = datum[0] ? datum[0].seriesLabel : ''
569
569
  const { groupIndex, groupLabel } = data.gridGroupPositionFn(event)