Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The items time is not correctly display, it is not the time i set to it? #130

Open
linuxfedora2020 opened this issue Jan 27, 2022 · 0 comments

Comments

@linuxfedora2020
Copy link

linuxfedora2020 commented Jan 27, 2022

Overview

The items time is not correctly display, it is not the time i set to it

Package versions

react-visjs-timeline: latest
vis version: latest

Steps to reproduce

Add step by step guide to reproduce issue

  1. Test the code in local broswer
  2. Item 1 display not from 2010, 7, 15

Code Snippet

import logo from './logo.svg';
import './App.css';
import Timeline from 'react-visjs-timeline'

const items = [{
  group: 1,
  start: new Date(2010, 7, 15),
  end: new Date(2010, 8, 2),  // end is optional
  content: 'Trajectory A',
}]



function App() {


  const groups = [{
    id: 1,
    content: 'Group A',
  }]

  return (
    <div className="App">


    <Timeline 
    items={items} 
    groups={groups}
    />

    </div>
  );
}

export default App;

Related issues

Any issue which is related to this issue

  • e.g. issue 123

Screenshots (if appropriate)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant