Giter Site home page Giter Site logo

powerbi-visuals-utils-chartutils's Introduction

powerbi-visuals-utils-chartutils's People

Contributors

adiletelf avatar alekssavelev avatar avisander avatar blackleaden avatar demonkratiy avatar dm-p avatar eugeneelkin avatar ignatvilesov avatar kamilzakiev avatar kenakamu avatar kulljul avatar mgaebler avatar microsoft-github-policy-service[bot] avatar mrmeison avatar mulyukovaidar avatar savvinsergey avatar uve avatar vtkalek avatar zbritva avatar

Stargazers

 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar

powerbi-visuals-utils-chartutils's Issues

drawLegend method doesn't work in IE11

Win10 b1909, Internet Explorer 11 v11.476.18362.0

drawLegend method fails to drow the Legend. The console does not display that problem.

Debugging shows that the Symbol object is not defined in IE. This object is used in "for..of" loops that also not supported by IE. Possible solution here might be to use classic "for" loop instead.

Links:

Adding chartutils breaks CV

Adding chartutils to Custom Visual produces Uncaught TypeError before anything is drawn to visual.

  1. Create new Custom Visual with pbiviz-tool.
  2. Add chartutils as instructed by the installation guide.
    1. Run npm install
    2. Add lines to pbiviz.json, tsconfig.json and visual.less
  3. Add also @types/d3 and powerbi-models, because component will not compile without after chartutils added.
  4. Custom Visual now compiles ok.
  5. When accessing it in debug mode in powerbi-portal produces following error:

Uncaught TypeError: Cannot read property 'DateTimeSequence' of undefined
at chart.axis.chart.axis (:4274:83)
at utils.chart.utils.chart (:5486:19)
at extensibility.utils.extensibility.utils (:5487:15)
at powerbi.extensibility.powerbi.extensibility (:5488:11)
at powerbi (:5489:7)
at Window. (:5490:3)
at :8129:20
at Object.i [as injectJsCode] (VM581 visualhostcore.min.js:2)
at i.loadWithoutResourcePackage (VM582 visualsandbox.min.js:1)
at i.executeMessage (VM582 visualsandbox.min.js:1)

Custom Visual remains blank.

Using

[email protected]
and
+-- @types/[email protected]
+-- [email protected]
+-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| -- [email protected] -- [email protected]

Any ideas what I'm doing wrong, or is there some problem with chartutils?

Legend doesn't work

Hey Guys. I tried this guide (https://github.com/microsoft/powerbi-visuals-utils-chartutils/blob/master/docs/api/legend.md) to add legend. But got the following error:

VM471:3108 Uncaught ReferenceError: regeneratorRuntime is not defined
    at Object.2469 (<anonymous>:3108:28)
    at __webpack_require__ (<anonymous>:19248:41)
    at Object.3582 (<anonymous>:2983:71)
    at __webpack_require__ (<anonymous>:19248:41)
    at Object.5458 (<anonymous>:2380:77)
    at __webpack_require__ (<anonymous>:19248:41)
    at Object.579 (<anonymous>:860:70)
    at __webpack_require__ (<anonymous>:19248:41)
    at Object.2468 (<anonymous>:1111:76)
    at __webpack_require__ (<anonymous>:19248:41)

Here all all my steps:
pbiviz new legend issue visual
npm i powerbi-visuals-utils-chartutils
npm i powerbi-visuals-utils-interactivityutils

repository with this issue: https://github.com/Alexandervelilyaev/legend-issue-visual.git

It looks like the documentation is out of date and has bugs. What can I do besides downgrade to get this to work?
Please help me. Thank you very much in advance.
Regards,
Alexander Velilyaev

Legend does not work in IE

Windows 10, Internet Explorer 11

Calling ILegend:drawLegend() fails. Console has following error:
"ERROR TypeError: Permission denied"

Debugging this issue revealed that drawLegend calls drawLegendInternal and it in turn tries to call SVGElement::getElementsByClassName which seems to be undefined in Internet Explorer.

This bug prevents Legend from being drawn.

Layout not correct when legend has multiple items

When multiple items added to legend, layout is not correct. Items are positioned as if legend item does not have text, but colored icon only.

Steps to reproduce:

  1. Install chartutils as described in installation guide and in issue #27.
  2. Create and draw legend as instructed in usage guide.

Example code:

let legend = createLegend(
    this.target,
    false,
    null);	

legend.drawLegend(
    {dataPoints : data}, 
    {width: 800, height: 200});

Works fine with one item:
1

Does not work correctly with two or more items. Item texts overlap.
2

Notes:
When orientation is changed, the result congruent; text is clipped.

legend.changeOrientation(LegendPosition.Left);

3

Is there a bug in the component, or what am I doing wrong?

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.