How to use the victory.VictoryTheme.material function in victory

To help you get started, we’ve selected a few victory examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github bestofjs / bestofjs-webui / src / components / TagView / StarsByDateGraph / Graph.js View on Github external
const Graph = ({ projects }) => {
  if (!projects || projects.length === 0) return <div>No data</div>
  return (
    <div>
      
        
        
        {projects.map(project =&gt; {</div>
github facebook / react / fixtures / concurrent / time-slicing / src / Charts.js View on Github external
fill: d =&gt; colors[d.x % 5],
                  stroke: 'none',
                  padding: 5,
                },
              }}
            /&gt;
          
        
        <div style="{{">
          
            
            </div>
github mapbox / bi-dashboard / src / components / Graph.js View on Github external
dependentAxis
            style={{
              tickLabels: { fontSize: 12, padding: 5, fontWeight: 300 }
            }}
          /&gt;
          
        
        <div style="{{">
          
        </div>
        
          }
          domainPadding={10}
          style={{
            labels: { fontSize: 12 },
            parent: { height: "45%", padding: 0 }
          }}
          animate={{
            duration: 1000,
            onLoad: { duration: 1000 }
github reach / router / examples / time-slicing / src / Charts.js View on Github external
data: {
                  fill: d =&gt; colors[d.x % 5],
                  stroke: 'none',
                  padding: 5,
                },
              }}
            /&gt;
          
        
        <div style="{{">
          
            
            </div>
github FormidableLabs / victory-docs / src / partials / home / hero-demo.js View on Github external
<div>
              
                
                  {this.state.data.map((data, i) =&gt; {
                    const key = this.props.alt ? `alt${i}` : i;
                    return ;
                  })}
                
                
                
              
            </div>
          
        
      
    );
  }
github webkom / lego-webapp / app / routes / surveys / components / Submissions / Results.js View on Github external
return (
            <li>
              <h3>{question.questionText}</h3>

              {question.questionType === QuestionTypes('text') ? (
                <ul>
                  {generateTextAnswers(question)}
                </ul>
              ) : (
                <div>
                  <div style="{{">
                     d.y}
                      labelRadius={labelRadius}
                      padding={{ left: 0, top: 40, right: 30, bottom: 30 }}
                      style={{
                        labels: { fill: 'white', fontSize: 20 }
                      }}
                    /&gt;
                  </div>

                  <ul>
                    {graphData[question.id].map((dataPoint, i) =&gt; (
                      <li>
                        </li></ul></div></li>
github mobilespace / community-members / src / members / NicholasSzeto / Dashboard.js View on Github external
(this.setRating(x))}
                /&gt;
                
              
            

            <div>
            <h6>No Clue</h6>
              
              
              
              
            </div>

          

          <div>
            <div>
            <h6>Click Me</h6>
              </div></div>
github narinluangrath / victory-gui / src / container / Chart.jsx View on Github external
constructor( props ) {
		super( props )
		this.state = {
			theme : VictoryTheme.material,
			data : data,
		}
		this.onChange = this.onChange.bind( this )
	}