Giter Club home page Giter Club logo

charts's People

Contributors

jiaming743 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

charts's Issues

怎么关闭动画

怎么关闭动画,直接将图形绘制出来不想使用动画效果,需要怎么配置呢

折线图x轴坐标过多问题

折线图的X轴坐标太多会导致拥挤,能否有配置项配置隔几个坐标显示一下,和y轴类似
|
|
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 月份
2019-01 2019-03 2019-06 2019-09 2019-12

vue 如何导入,配置文件能不能写详细一些。

问题1:已声明“Charts”,但从未读取其值。ts(6133)
无法找到模块“@jiaminghi/charts”的声明文件。“c:/Users/tt/Desktop/Project/vue2.0/node_modules/@jiaminghi/charts/lib/index.js”隐式拥有 "any" 类型。
尝试 npm install @types/jiaminghi__charts (如果存在),或者添加一个包含 declare module '@jiaminghi/charts'; 的新声明(.d.ts)文件ts(7016)

问题2:charts.class.js:26 Charts Missing parameters! 一直要参数,到底要什么参数,配置文件找不到

有没有考虑过多元化配置增强版的飞线图

现在飞线图的地图用的是图片的形式,可不可以考虑用户直接配置地图等级,以及地图的范围,例如国家级-**,这样自动会出现地图。目前飞线图使用的是图片形式,感觉用起来差点意思。望采纳建议

饼状图

在vue项目中使用饼状图,在子组组件中使用标签,然后在父组件中进行实例化的时候,会new出来2个canvas

柱状图在所有数值均相同的情况下,Y坐标轴的最大值和最小值会失效。

配置项如:

options:
{
        legend: {
          data: [
            {
              name: '业务可用性',
              color: '#3de7c9'
            }
          ],
          y: 'top',
          textStyle: {
            fill: '#fff'
          }
        },
        xAxis: {
          data: [
            '2019-12-10', '2019-12-11',
            '2019-12-12', '2019-12-13',
            '2019-12-14', '2019-12-15',
            '2019-12-16', '2019-12-17',
            '2019-12-18', '2019-12-19'],
          axisLine: {
            style: {
              stroke: '#999'
            }
          },
          axisLabel: {
            style: {
              fill: '#999'
            }
          },
          axisTick: {
            show: false
          }
        },
        yAxis: {
          data: 'value',
          min: 80,
          splitLine: {
            show: false
          },
          axisLine: {
            style: {
              stroke: '#999'
            }
          },
          axisLabel: {
            style: {
              fill: '#999'
            }
          },
          axisTick: {
            show: false
          }
        },
        series: [
          {
            name: '业务可用性',
            data: [100, 100, 100, 100, 100, 100, 100, 100, 100, 100],
            type: 'line',
            smooth: true,
            lineArea: {
              show: true,
              gradient: ['rgba(55, 162, 218, 0.6)', 'rgba(55, 162, 218, 0)']
            },
            lineStyle: {
              lineDash: [5, 5]
            },
            linePoint: {
              radius: 4,
              style: {
                fill: '#00db95'
              }
            }
          }
        ]
      }

柱状堆叠图 数字位置显示不对

        series: [
          {
            name: '完成工时',
            data: [],
            type: 'bar',
            stack: 'a',
            label: {
              show: true,
              position: 'center',
              offset: [0, 0],
              style: {
                fontSize: 20,
                fill: '#fff'
              }
            }            
          },
          {
            name: '剩余工时',
            data: [],
            type: 'bar',
            stack: 'a',
            label: {
              show: true,
              position: 'center',
              offset: [0, 0],
              style: {
                fontSize: 20,
                fill: '#fff'
              }
            }            
          }                                                      
        ]


22229
normal9

min和max是否可以不用写死?

yAxis: [
      {
        name: '曝光数',
        nameTextStyle: {
          fill: '#b1afc6',
          fontSize: 14,
        },
        data: 'value',
        min: 0,
        axisLabel: {
          style: {
            fill: '#b1afc6',
            fontSize: 14,
            rotate: 0,
          },
        },
        axisTick: {
          show: false,
          style: {
            stroke: '#b1afc6',
          },
        },
        axisLine: {
          show: false,
          style: {
            stroke: '#B9B8CE',
          },
        },
        splitLine: {
          style: {
            stroke: '#484753',
          },
        },
      },
      {
        name: '千次成本',
        nameTextStyle: {
          fill: '#b1afc6',
          fontSize: 14,
        },
        data: 'value',
        position: 'right',
        min: 0,
        max: 160,
        splitLine: {
          show: false,
        },
        axisLabel: {
          style: {
            fill: '#b1afc6',
            fontSize: 14,
            rotate: 0,
          },
          formatter: '{value} 元',
        },
        axisTick: {
          show: false,
        },
        axisLine: {
          show: false,
        },
      },
    ],

min和max是否可以不用写死?
使用'dataMin'和'dataMax'或者使用funtion(value){retrun value.min*0.8}

grid没有containLabel属性

如题,没有这个属性的话,y轴标签很容易长度过长超出容器大小,而且如果只是单独设置left,top的话又不能自适应了

changeDefaultConfig 使用方式

import { changeDefaultConfig } from '@jiaminghi/charts'
changeDefaultConfig('color', ['#000'])

文档里 我没看懂 到底是怎么用的,我是react版本的 在 哪里写都不好使,作者能不能 告知一下如何才能正确修改全局配置

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.