Open AndreAlves10 opened 7 years ago
I will try to create a jsbin. This is a screenshot of the container div and the respective error:
Noob mistake. I wasn't properly referencing the javascript and css files.
In angular-cli.json, I imported both files:
"styles": [
"../node_modules/vis/dist/vis.min.css"
],
"scripts": [
"../node_modules/vis/dist/vis.min.js"
]
And now it is working fine.
Good day, I wonder what is the status for this bug. Because it seems that somehow, the vis.css is not referenced correctly either in the npmjs library (https://www.npmjs.com/package/@types/vis) or might be some other issues. Is the temporary workaround is to explicitly include the css path globally in the angular-cli.json or index.html for Angular framework considered as the final solution?
This bug is also reported similarly for ticket #1704, #1951 and #2739 (here) with all concluded with temporary solution or added to the milestone.
Hi all, I am using polymer. and following is my timeline polymer element code.
But when I try to use it in index.html
<legacy-element></legacy-element>
its give me same error. I have read all comments and issues regarding this but no success. Please help.
This hasn't been fixed, I suppose.
Yes, we are facing the same issue
i've encountered the same issue in a plain es6 js project bundled with webpack and babel
import 'vis/dist/vis-timeline-graph2d.min.css';
it turns out i was missing the timeline css https://github.com/almende/vis/issues/1951#issuecomment-398174577
Make sure you're not targeting the div
element(s) with extra CSS that could cause it. That was width: 100%;
in my case.
I fixed this issue by adding rel
to both link
and 'script' tags.
<link href="https://cdnjs.cloudflare.com/ajax/libs/vis/4.21.0/vis.min.css" rel="stylesheet">
<script src="https://cdnjs.cloudflare.com/ajax/libs/vis/4.21.0/vis.min.js" rel="script"></script>
I'm trying to use VIS, in an angular-cli project:
os: win32 x64 @angular/common: 2.4.7 @angular/compiler: 2.4.7 @angular/core: 2.4.7 @angular/forms: 2.4.7 @angular/http: 2.4.7 @angular/platform-browser: 2.4.7 @angular/platform-browser-dynamic: 2.4.7 @angular/router: 3.4.7 @angular/cli: 1.0.0-beta.31 @angular/compiler-cli: 2.4.7
In my HTML file I have the following:
In Typescript I have this:
However, I'm getting the error: "Something is wrong with the Timeline scale. Limited drawing of grid lines to 1000 lines."
Am i missing something in the code?
Thank you