Browse Source

Fixed background styling issue with Graph2d

flowchartTest
jos 9 years ago
parent
commit
b523d7ef85
3 changed files with 11 additions and 14 deletions
  1. +2
    -3
      examples/graph2d/05_bothAxis.html
  2. +3
    -3
      examples/graph2d/16_bothAxis_titles.html
  3. +6
    -8
      lib/timeline/component/css/pathStyles.css

+ 2
- 3
examples/graph2d/05_bothAxis.html View File

@ -3,6 +3,8 @@
<head>
<title>Graph2d | Both Axis Example</title>
<link href="../../dist/vis.css" rel="stylesheet" type="text/css" />
<script src="../../dist/vis.js"></script>
<style type="text/css">
body, html {
font-family: sans-serif;
@ -32,9 +34,6 @@
stroke: none;
}
</style>
<!--IMPORTANT: import the vis css after the custom styles to avoid overriding styles-->
<script src="../../dist/vis.js"></script>
<script>(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,'script','//www.google-analytics.com/analytics.js','ga');ga('create', 'UA-61231638-1', 'auto');ga('send', 'pageview');</script></head>
<body>

+ 3
- 3
examples/graph2d/16_bothAxis_titles.html View File

@ -3,6 +3,8 @@
<head>
<title>Graph2d | Axis Titles and Styling</title>
<link href="../../dist/vis.css" rel="stylesheet" type="text/css" />
<script src="../../dist/vis.js"></script>
<style type="text/css">
body, html {
font-family: sans-serif;
@ -34,9 +36,7 @@
}
</style>
<script src="../../dist/vis.js"></script>
<script>(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,'script','//www.google-analytics.com/analytics.js','ga');ga('create', 'UA-61231638-1', 'auto');ga('send', 'pageview');</script></head>
<script>(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,'script','//www.google-analytics.com/analytics.js','ga');ga('create', 'UA-61231638-1', 'auto');ga('send', 'pageview');</script></head>
<body>
<h2>Graph2d | Axis Titles and Styling</h2>
<div style="width:800px; font-size:14px; text-align: justify;">

+ 6
- 8
lib/timeline/component/css/pathStyles.css View File

@ -68,24 +68,24 @@
stroke: #8f3938;
}
.vis-fill {
.vis-timeline .vis-fill {
fill-opacity:0.1;
stroke: none;
}
.vis-bar {
.vis-timeline .vis-bar {
fill-opacity:0.5;
stroke-width:1px;
}
.vis-point {
.vis-timeline .vis-point {
stroke-width:2px;
fill-opacity:1.0;
}
.vis-legend-background {
.vis-timeline .vis-legend-background {
stroke-width:1px;
fill-opacity:0.9;
fill: #ffffff;
@ -93,16 +93,14 @@
}
.vis-outline {
.vis-timeline .vis-outline {
stroke-width:1px;
fill-opacity:1;
fill: #ffffff;
stroke: #e5e5e5;
}
.vis-icon-fill {
.vis-timeline .vis-icon-fill {
fill-opacity:0.3;
stroke: none;
}

Loading…
Cancel
Save