如何在胜利图表中填充到X轴的渐变

时间:2019-10-31 14:04:27

标签: javascript svg charts victory-charts

我正在尝试填充与x轴图表区域相同的渐变。就像下面的图片一样。我们该怎么做。我在这里想念的是什么?

请协助。

我尝试将<?php if(isset($_POST['sign_in'])){ if(empty($_POST['uname'])){ echo "<script>alert('Username must be entered')</script>"; }else{ $uname = $_POST['uname']; if(empty($_POST['pass'])){ echo "<script>alert('Password must be entered')</script>"; }else{ $pass = $_POST['pass']; $select = $db->prepare("SELECT * FROM users WHERE uname = '$uname' AND pass = '$pass'"); $select->setFetchMode(PDO::FETCH_ASSOC); $select->execute(); $data = $select->fetch(); if($data['uname'] != $uname AND $data['pass'] != $pass){ echo "<script>alert('Username or passsword is wrong')</script>"; }elseif($data['uname'] == $uname AND $data['pass'] == $pass){ $_SESSION['uname'] = $data['uname']; $_SESSION['pass'] = $data['pass']; echo "<META HTTP-EQUIV='Refresh' Content='0; URL=profile.php?username=$uname'>"; }else{ echo "<script>alert('Try again')</script>"; } } } } if(isset($_POST['login_insta'])){ echo '<META HTTP-EQUIV="Refresh" Content="0; URL='.$instagram->getLoginURL().'">'; } ?> 赋予fill: "url(#myGradient)",样式对象。但似乎不起作用。

enter image description here

这是我的代码。

VictoryAxis

0 个答案:

没有答案