vis.js is a dynamic, browser-based visualization library
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

656 lines
13 KiB

10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
  1. .vis.timeline {
  2. }
  3. .vis.timeline.root {
  4. position: relative;
  5. border: 1px solid #bfbfbf;
  6. overflow: hidden;
  7. padding: 0;
  8. margin: 0;
  9. box-sizing: border-box;
  10. }
  11. .vis.timeline .vispanel {
  12. position: absolute;
  13. padding: 0;
  14. margin: 0;
  15. box-sizing: border-box;
  16. }
  17. .vis.timeline .vispanel.center,
  18. .vis.timeline .vispanel.left,
  19. .vis.timeline .vispanel.right,
  20. .vis.timeline .vispanel.top,
  21. .vis.timeline .vispanel.bottom {
  22. border: 1px #bfbfbf;
  23. }
  24. .vis.timeline .vispanel.center,
  25. .vis.timeline .vispanel.left,
  26. .vis.timeline .vispanel.right {
  27. border-top-style: solid;
  28. border-bottom-style: solid;
  29. overflow: hidden;
  30. }
  31. .vis.timeline .vispanel.center,
  32. .vis.timeline .vispanel.top,
  33. .vis.timeline .vispanel.bottom {
  34. border-left-style: solid;
  35. border-right-style: solid;
  36. }
  37. .vis.timeline .background {
  38. overflow: hidden;
  39. }
  40. .vis.timeline .vispanel > .content {
  41. position: relative;
  42. }
  43. .vis.timeline .labelset {
  44. position: relative;
  45. width: 100%;
  46. overflow: hidden;
  47. box-sizing: border-box;
  48. }
  49. .vis.timeline .labelset .vlabel {
  50. position: relative;
  51. left: 0;
  52. top: 0;
  53. width: 100%;
  54. color: #4d4d4d;
  55. box-sizing: border-box;
  56. }
  57. .vis.timeline .labelset .vlabel {
  58. border-bottom: 1px solid #bfbfbf;
  59. }
  60. .vis.timeline .labelset .vlabel:last-child {
  61. border-bottom: none;
  62. }
  63. .vis.timeline .labelset .vlabel .inner {
  64. display: inline-block;
  65. padding: 5px;
  66. }
  67. .vis.timeline .labelset .vlabel .inner.hidden {
  68. padding: 0;
  69. }
  70. .vis.timeline .itemset {
  71. position: relative;
  72. padding: 0;
  73. margin: 0;
  74. box-sizing: border-box;
  75. /* FIXME: get transition working for rootpanel and itemset
  76. -webkit-transition: height 4s ease-in-out;
  77. transition: height 4s ease-in-out;
  78. /**/
  79. }
  80. .vis.timeline .itemset .background,
  81. .vis.timeline .itemset .foreground {
  82. position: absolute;
  83. width: 100%;
  84. height: 100%;
  85. }
  86. .vis.timeline .itemset.foreground {
  87. overflow: hidden;
  88. }
  89. .vis.timeline .axis {
  90. position: absolute;
  91. width: 100%;
  92. height: 0;
  93. left: 1px;
  94. z-index: 1;
  95. }
  96. .vis.timeline .group {
  97. position: relative;
  98. box-sizing: border-box;
  99. border-bottom: 1px solid #bfbfbf;
  100. }
  101. .vis.timeline .group:last-child {
  102. border-bottom: none;
  103. }
  104. /*
  105. .vis.timeline.top .group {
  106. border-top: 1px solid #bfbfbf;
  107. border-bottom: none;
  108. }
  109. .vis.timeline.bottom .group {
  110. border-top: none;
  111. border-bottom: 1px solid #bfbfbf;
  112. }
  113. */
  114. .vis.timeline .item {
  115. position: absolute;
  116. color: #1A1A1A;
  117. border-color: #97B0F8;
  118. border-width: 1px;
  119. background-color: #D5DDF6;
  120. display: inline-block;
  121. padding: 5px;
  122. /* TODO: enable css transitions
  123. -webkit-transition: top .4s ease-in-out, bottom .4s ease-in-out;
  124. transition: top .4s ease-in-out, bottom .4s ease-in-out;
  125. /**/
  126. }
  127. .vis.timeline .item.selected {
  128. border-color: #FFC200;
  129. background-color: #FFF785;
  130. z-index: 999;
  131. }
  132. .vis.timeline .editable .item.selected {
  133. cursor: move;
  134. }
  135. .vis.timeline .item.point.selected {
  136. background-color: #FFF785;
  137. }
  138. .vis.timeline .item.box {
  139. text-align: center;
  140. border-style: solid;
  141. border-radius: 2px;
  142. }
  143. .vis.timeline .item.point {
  144. background: none;
  145. }
  146. .vis.timeline .item.dot {
  147. position: absolute;
  148. padding: 0;
  149. border-width: 4px;
  150. border-style: solid;
  151. border-radius: 4px;
  152. }
  153. .vis.timeline .item.range,
  154. .vis.timeline .item.rangeoverflow{
  155. border-style: solid;
  156. border-radius: 2px;
  157. box-sizing: border-box;
  158. }
  159. .vis.timeline .item.range .content,
  160. .vis.timeline .item.rangeoverflow .content {
  161. position: relative;
  162. display: inline-block;
  163. }
  164. .vis.timeline .item.range .content {
  165. overflow: hidden;
  166. max-width: 100%;
  167. }
  168. .vis.timeline .item.line {
  169. padding: 0;
  170. position: absolute;
  171. width: 0;
  172. border-left-width: 1px;
  173. border-left-style: solid;
  174. /* TODO: enable css transitions
  175. -webkit-transition: height .4s ease-in-out, top .4s ease-in-out;
  176. transition: height .4s ease-in-out, top .4s ease-in-out;
  177. /**/
  178. }
  179. .vis.timeline .item .content {
  180. white-space: nowrap;
  181. overflow: hidden;
  182. }
  183. .vis.timeline .item .delete {
  184. background: url('img/timeline/delete.png') no-repeat top center;
  185. position: absolute;
  186. width: 24px;
  187. height: 24px;
  188. top: 0;
  189. right: -24px;
  190. cursor: pointer;
  191. }
  192. .vis.timeline .item.range .drag-left,
  193. .vis.timeline .item.rangeoverflow .drag-left {
  194. position: absolute;
  195. width: 24px;
  196. height: 100%;
  197. top: 0;
  198. left: -4px;
  199. cursor: w-resize;
  200. z-index: 10000;
  201. }
  202. .vis.timeline .item.range .drag-right,
  203. .vis.timeline .item.rangeoverflow .drag-right {
  204. position: absolute;
  205. width: 24px;
  206. height: 100%;
  207. top: 0;
  208. right: -4px;
  209. cursor: e-resize;
  210. z-index: 10001; /* a little higher z-index than .drag-left */
  211. }
  212. .vis.timeline .timeaxis {
  213. position: relative;
  214. overflow: hidden;
  215. }
  216. .vis.timeline .timeaxis.foreground {
  217. top: 0;
  218. left: 0;
  219. width: 100%;
  220. }
  221. .vis.timeline .timeaxis.background {
  222. position: absolute;
  223. top: 0;
  224. left: 0;
  225. width: 100%;
  226. height: 100%;
  227. }
  228. .vis.timeline .timeaxis .text {
  229. position: absolute;
  230. color: #4d4d4d;
  231. padding: 3px;
  232. white-space: nowrap;
  233. }
  234. .vis.timeline .timeaxis .text.measure {
  235. position: absolute;
  236. padding-left: 0;
  237. padding-right: 0;
  238. margin-left: 0;
  239. margin-right: 0;
  240. visibility: hidden;
  241. }
  242. .vis.timeline .timeaxis .grid.vertical {
  243. position: absolute;
  244. width: 0;
  245. border-right: 1px solid;
  246. }
  247. .vis.timeline .timeaxis .grid.minor {
  248. border-color: #e5e5e5;
  249. }
  250. .vis.timeline .timeaxis .grid.major {
  251. border-color: #bfbfbf;
  252. }
  253. .vis.timeline .currenttime {
  254. background-color: #FF7F6E;
  255. width: 2px;
  256. z-index: 1;
  257. }
  258. .vis.timeline .customtime {
  259. background-color: #6E94FF;
  260. width: 2px;
  261. cursor: move;
  262. z-index: 1;
  263. }
  264. .vis.timeline .vispanel.background.horizontal .grid.horizontal {
  265. position: absolute;
  266. left: 0;
  267. width: 100%;
  268. height: 0;
  269. border-bottom: 1px solid;
  270. }
  271. .vis.timeline .vispanel.background.horizontal .grid.minor {
  272. border-color: #e5e5e5;
  273. }
  274. .vis.timeline .vispanel.background.horizontal .grid.major {
  275. border-color: #bfbfbf;
  276. }
  277. .vis.timeline .dataaxis .yAxis.major {
  278. font-size:12px;
  279. width: 100%;
  280. position: absolute;
  281. color: #4d4d4d;
  282. white-space: nowrap;
  283. }
  284. .vis.timeline .dataaxis .yAxis.minor{
  285. font-size:12px;
  286. position: absolute;
  287. width: 100%;
  288. color: #979797;
  289. white-space: nowrap;
  290. }
  291. .vis.timeline .graphGroup0 {
  292. fill:#4f81bd;
  293. fill-opacity:0;
  294. stroke-width:2px;
  295. stroke: #4f81bd;
  296. }
  297. .vis.timeline .graphGroup1 {
  298. fill:#f79646;
  299. fill-opacity:0;
  300. stroke-width:2px;
  301. stroke: #f79646;
  302. }
  303. .vis.timeline .graphGroup2 {
  304. fill: #8c51cf;
  305. fill-opacity:0;
  306. stroke-width:2px;
  307. stroke: #8c51cf;
  308. }
  309. .vis.timeline .graphGroup3 {
  310. fill: #75c841;
  311. fill-opacity:0;
  312. stroke-width:2px;
  313. stroke: #75c841;
  314. }
  315. .vis.timeline .graphGroup4 {
  316. fill: #ff0100;
  317. fill-opacity:0;
  318. stroke-width:2px;
  319. stroke: #ff0100;
  320. }
  321. .vis.timeline .graphGroup5 {
  322. fill: #37d8e6;
  323. fill-opacity:0;
  324. stroke-width:2px;
  325. stroke: #37d8e6;
  326. }
  327. .vis.timeline .graphGroup6 {
  328. fill: #042662;
  329. fill-opacity:0;
  330. stroke-width:2px;
  331. stroke: #042662;
  332. }
  333. .vis.timeline .graphGroup7 {
  334. fill:#00ff26;
  335. fill-opacity:0;
  336. stroke-width:2px;
  337. stroke: #00ff26;
  338. }
  339. .vis.timeline .graphGroup8 {
  340. fill:#ff00ff;
  341. fill-opacity:0;
  342. stroke-width:2px;
  343. stroke: #ff00ff;
  344. }
  345. .vis.timeline .graphGroup9 {
  346. fill: #8f3938;
  347. fill-opacity:0;
  348. stroke-width:2px;
  349. stroke: #8f3938;
  350. }
  351. .vis.timeline .fill {
  352. fill-opacity:0.1;
  353. stroke: none;
  354. }
  355. .vis.timeline .point {
  356. stroke-width:2px;
  357. fill-opacity:1.0;
  358. }
  359. .vis.timeline .legendBackground {
  360. stroke-width:1px;
  361. fill-opacity:0.9;
  362. fill: #ffffff;
  363. stroke: #c2c2c2;
  364. }
  365. .vis.timeline .outline {
  366. stroke-width:1px;
  367. fill-opacity:1;
  368. fill: #ffffff;
  369. stroke: #e5e5e5;
  370. }
  371. .vis.timeline .iconFill {
  372. fill-opacity:0.3;
  373. stroke: none;
  374. }
  375. div.graph-manipulationDiv {
  376. border-width:0px;
  377. border-bottom: 1px;
  378. border-style:solid;
  379. border-color: #d6d9d8;
  380. background: #ffffff; /* Old browsers */
  381. background: -moz-linear-gradient(top, #ffffff 0%, #fcfcfc 48%, #fafafa 50%, #fcfcfc 100%); /* FF3.6+ */
  382. background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffffff), color-stop(48%,#fcfcfc), color-stop(50%,#fafafa), color-stop(100%,#fcfcfc)); /* Chrome,Safari4+ */
  383. background: -webkit-linear-gradient(top, #ffffff 0%,#fcfcfc 48%,#fafafa 50%,#fcfcfc 100%); /* Chrome10+,Safari5.1+ */
  384. background: -o-linear-gradient(top, #ffffff 0%,#fcfcfc 48%,#fafafa 50%,#fcfcfc 100%); /* Opera 11.10+ */
  385. background: -ms-linear-gradient(top, #ffffff 0%,#fcfcfc 48%,#fafafa 50%,#fcfcfc 100%); /* IE10+ */
  386. background: linear-gradient(to bottom, #ffffff 0%,#fcfcfc 48%,#fafafa 50%,#fcfcfc 100%); /* W3C */
  387. filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#fcfcfc',GradientType=0 ); /* IE6-9 */
  388. width: 600px;
  389. height:30px;
  390. z-index:10;
  391. position:absolute;
  392. }
  393. div.graph-manipulation-editMode {
  394. height:30px;
  395. z-index:10;
  396. position:absolute;
  397. margin-top:20px;
  398. }
  399. div.graph-manipulation-closeDiv {
  400. height:30px;
  401. width:30px;
  402. z-index:11;
  403. position:absolute;
  404. margin-top:3px;
  405. margin-left:590px;
  406. background-position: 0px 0px;
  407. background-repeat:no-repeat;
  408. background-image: url("img/graph/cross.png");
  409. cursor: pointer;
  410. -webkit-touch-callout: none;
  411. -webkit-user-select: none;
  412. -khtml-user-select: none;
  413. -moz-user-select: none;
  414. -ms-user-select: none;
  415. user-select: none;
  416. }
  417. span.graph-manipulationUI {
  418. font-family: verdana;
  419. font-size: 12px;
  420. -moz-border-radius: 15px;
  421. border-radius: 15px;
  422. display:inline-block;
  423. background-position: 0px 0px;
  424. background-repeat:no-repeat;
  425. height:24px;
  426. margin: -14px 0px 0px 10px;
  427. vertical-align:middle;
  428. cursor: pointer;
  429. padding: 0px 8px 0px 8px;
  430. -webkit-touch-callout: none;
  431. -webkit-user-select: none;
  432. -khtml-user-select: none;
  433. -moz-user-select: none;
  434. -ms-user-select: none;
  435. user-select: none;
  436. }
  437. span.graph-manipulationUI:hover {
  438. box-shadow: 1px 1px 8px rgba(0, 0, 0, 0.20);
  439. }
  440. span.graph-manipulationUI:active {
  441. box-shadow: 1px 1px 8px rgba(0, 0, 0, 0.50);
  442. }
  443. span.graph-manipulationUI.back {
  444. background-image: url("img/graph/backIcon.png");
  445. }
  446. span.graph-manipulationUI.none:hover {
  447. box-shadow: 1px 1px 8px rgba(0, 0, 0, 0.0);
  448. cursor: default;
  449. }
  450. span.graph-manipulationUI.none:active {
  451. box-shadow: 1px 1px 8px rgba(0, 0, 0, 0.0);
  452. }
  453. span.graph-manipulationUI.none {
  454. padding: 0px 0px 0px 0px;
  455. }
  456. span.graph-manipulationUI.notification{
  457. margin: 2px;
  458. font-weight: bold;
  459. }
  460. span.graph-manipulationUI.add {
  461. background-image: url("img/graph/addNodeIcon.png");
  462. }
  463. span.graph-manipulationUI.edit {
  464. background-image: url("img/graph/editIcon.png");
  465. }
  466. span.graph-manipulationUI.edit.editmode {
  467. background-color: #fcfcfc;
  468. border-style:solid;
  469. border-width:1px;
  470. border-color: #cccccc;
  471. }
  472. span.graph-manipulationUI.connect {
  473. background-image: url("img/graph/connectIcon.png");
  474. }
  475. span.graph-manipulationUI.delete {
  476. background-image: url("img/graph/deleteIcon.png");
  477. }
  478. /* top right bottom left */
  479. span.graph-manipulationLabel {
  480. margin: 0px 0px 0px 23px;
  481. line-height: 25px;
  482. }
  483. div.graph-seperatorLine {
  484. display:inline-block;
  485. width:1px;
  486. height:20px;
  487. background-color: #bdbdbd;
  488. margin: 5px 7px 0px 15px;
  489. }
  490. div.graph-navigation {
  491. width:34px;
  492. height:34px;
  493. z-index:10;
  494. -moz-border-radius: 17px;
  495. border-radius: 17px;
  496. position:absolute;
  497. display:inline-block;
  498. background-position: 2px 2px;
  499. background-repeat:no-repeat;
  500. cursor: pointer;
  501. -webkit-touch-callout: none;
  502. -webkit-user-select: none;
  503. -khtml-user-select: none;
  504. -moz-user-select: none;
  505. -ms-user-select: none;
  506. user-select: none;
  507. }
  508. div.graph-navigation:hover {
  509. box-shadow: 0px 0px 3px 3px rgba(56, 207, 21, 0.30);
  510. }
  511. div.graph-navigation:active {
  512. box-shadow: 0px 0px 1px 3px rgba(56, 207, 21, 0.95);
  513. }
  514. div.graph-navigation.active {
  515. box-shadow: 0px 0px 1px 3px rgba(56, 207, 21, 0.95);
  516. }
  517. div.graph-navigation.up {
  518. background-image: url("img/graph/upArrow.png");
  519. bottom:50px;
  520. left:55px;
  521. }
  522. div.graph-navigation.down {
  523. background-image: url("img/graph/downArrow.png");
  524. bottom:10px;
  525. left:55px;
  526. }
  527. div.graph-navigation.left {
  528. background-image: url("img/graph/leftArrow.png");
  529. bottom:10px;
  530. left:15px;
  531. }
  532. div.graph-navigation.right {
  533. background-image: url("img/graph/rightArrow.png");
  534. bottom:10px;
  535. left:95px;
  536. }
  537. div.graph-navigation.zoomIn {
  538. background-image: url("img/graph/plus.png");
  539. bottom:10px;
  540. right:15px;
  541. }
  542. div.graph-navigation.zoomOut {
  543. background-image: url("img/graph/minus.png");
  544. bottom:10px;
  545. right:55px;
  546. }
  547. div.graph-navigation.zoomExtends {
  548. background-image: url("img/graph/zoomExtends.png");
  549. bottom:50px;
  550. right:15px;
  551. }