You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2022/01/15 09:14:00 UTC

[GitHub] [echarts] raphael10-collab commented on issue #16375: Issue with `pie chart` when `data objects` array is built up by two arrays: `data point` array + `x-axis data` array

raphael10-collab commented on issue #16375:
URL: https://github.com/apache/echarts/issues/16375#issuecomment-1013648825


   Hi @plainheart !
   
   Does it mean that this code for building the `data` array up is not correct?
       
       const { chartType, seriesData, xAxisType, xAxisData } = props
   
        const psSeriesDataBuild = (sd: number[], xaxisd: string[]): psDataType[] => {
          let psDataArray : psDataType[] = []
          for(let i = 0; i < sd.length; i++) {
            const psDataPair: psDataType = {
              dataPoint: sd[i],
              name: xaxisd[i]
            }
            psDataArray.push(psDataPair)
          }
          return psDataArray
        }
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org