我正在尝试填充与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)",
样式对象。但似乎不起作用。
这是我的代码。
VictoryAxis