npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@sensecare/access-details-chart

v1.0.3

Published

accessDetailsChart

Downloads

3

Readme

通路详情图

  • 基于Echrets封装的通路详情图

image.png

/**
 * 通路详情图
 * @param {*} id 当前选中容器
 * @param {*} seriesData 当前数据
 * @param {*} xData 当前x轴数据
 * @param {*} container 当前图表实例组合
 * 
 **/

  import { initAccessDetailsChart } from '~'

    const chartMap = new Map();
    // x轴分类信息
    let xData = [ 'SOS1', 'RIT1', 'RAPGGEF2', 'PDGFRB', 'PDGFRA', 'NTRK3', 'MARK1', 'KSR2', 'ARHGAP35', 'ABL1', 'NF1', 'EGFR', 'CBL', 'KRAS', 'KIT', 'PTPN11', 'NRAS', 'FLT3',];
    // mock图表需要的数据
    const seriesData = xData.map(item => {
      return {
        name: item,
        data: [] || new Array(100).fill(0).map(_ => Math.random() > 0.8), // 将柱状图分成100份 有值的地方填充true 没有值填充false
      };
    });

    let ArrayLength100 = new Array(100).fill(0);
        // mock数据 还原设计图
    xData.forEach((name,i)=>{
      if(i === 0){
        seriesData[i].data = ArrayLength100.map((_,index)=> index === 98?true:false)
      }else if(i === 1){
        seriesData[i].data = ArrayLength100.map((_,index)=> index === 90?true:false)
      }else if(i === 2){
        seriesData[i].data = ArrayLength100.map((_,index)=> index === 97?true:false)
      }else if(i === 3){
        seriesData[i].data = ArrayLength100.map((_,index)=> index === 71?true:false)
      }else if(i === 4){
        seriesData[i].data = ArrayLength100.map((_,index)=> index === 76?true:false)
      }else if(i === 5){
        seriesData[i].data = ArrayLength100.map((_,index)=> index === 96?true:false)
      }else if(i === 6){
        seriesData[i].data = ArrayLength100.map((_,index)=> index === 95?true:false)
      }else if(i === 7){
        seriesData[i].data = ArrayLength100.map((_,index)=> index === 94?true:false)
      }else if(i === 8){
        seriesData[i].data = ArrayLength100.map((_,index)=> index === 51?true:false)
      }else if(i === 9){
        seriesData[i].data = ArrayLength100.map((_,index)=> index === 92?true:false)
      }else if(i === 10){
        seriesData[i].data = ArrayLength100.map((_,index)=> index === 91?true:false)
      }else if(i === 11){
        seriesData[i].data = ArrayLength100.map((_,index)=> [89,90].includes(index) ? true:false)
      }else if(i === 12){
        seriesData[i].data = ArrayLength100.map((_,index)=> [87,88].includes(index) ? true:false)
      }else if(i === 13){
        seriesData[i].data = ArrayLength100.map((_,index)=> [60,86].includes(index) ? true:false)
      }else if(i === 14){
        seriesData[i].data = ArrayLength100.map((_,index)=> [80,81,82,83,84,85].includes(index) ? true:false)
      }else if(i === 15){
        seriesData[i].data = ArrayLength100.map((_,index)=> [74,75,76,77,78,79].includes(index) ? true:false)
      }else if(i === 16){
        seriesData[i].data = ArrayLength100.map((_,index)=> [66,67,68,69,70,71,72,73].includes(index) ? true:false)
      }else if(i === 17){
        seriesData[i].data = ArrayLength100.map((_,index)=> index<65 ? true:false)
      }
    })

    // 初始化通路详情图
    initAccessDetailsChart({ seriesData,xData,id:'accessDetails',chartMap })