.myx-scatter,
.myx-line,
.myx-pie,
.myx-bar,
.myx-map {
  background-color: #fff;
  width: 100%;
  position: relative;
  max-width: 500px;
  margin: 0 auto;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.my-charts {
  box-sizing: border-box;
  font-size: 10px;
}

.my-charts svg {
  position: relative;
  overflow: visible;
}

.my-charts * {
  vector-effect: non-scaling-stroke;
}

.my-charts text:not(.custom) {
  font-family: sans-serif;
}

.my-charts g.myx-axis.x .domain {
  opacity: 0;
}

.hide-y-axis g.myx-axis.x .domain {
  opacity: 0;
}

.myx-line.single {
  .original-dashed {
    stroke-dasharray: 3, 3;
  }
}

.my-charts .myx-axis path,
.my-charts .myx-axis line {
  fill: none;
  stroke: #d8d8d8;
  shape-rendering: geometricPrecision;
  stroke-width: 1.5px;
}

.my-charts .myx-axis.x line {
  display: none;
}

.my-charts .myx-axis.x text {
  transform: translate(0, 0.5);
}

.my-charts .myx-axis.y line {
  fill: none;
  stroke: #ebebeb;
  shape-rendering: geometricPrecision;
  stroke-width: 0.5px;
  opacity: 1;
  stroke-dasharray: 2, 2;
}

.my-charts:not(.myx-bar) g.myx-axis > g:first-of-type line {
  opacity: 1;
  stroke-width: 0.5px;
  stroke-dasharray: 0;
}

.my-charts.myx-bar g.myx-axis > g:last-of-type line {
  opacity: 1;
  stroke-width: 0.5px;
  stroke-dasharray: 0;
}

.my-charts:not(.myx-bar) g.myx-axis > g.selected:first-of-type line {
  opacity: 1;
}

.my-charts g.myx-axis.y .domain {
  fill: none;
  stroke: #ebebeb;
  shape-rendering: geometricPrecision;
  stroke-width: 0.5px;
  opacity: 0;
  stroke-dasharray: 2, 2;
}

.my-charts g.myx-inner-x .domain {
  fill: none;
  stroke: #ebebeb;
  shape-rendering: geometricPrecision;
  stroke-width: 1px;
}

.my-charts g.myx-inner-x .tick {
  display: none;
}

.my-charts.myx-bar g.myx-axis.y .domain {
  display: none;
}

.my-charts g.myx-axis.x .domain {
  fill: none;
  stroke: #ebebeb;
  shape-rendering: geometricPrecision;
  stroke-width: 1px;
}

.my-charts g.myx-axis.x .tick {
  display: none;
}

.my-charts g.myx-axis.x .tick text {
  display: none;
}

.my-charts g.myx-axis.x .tick.active {
  display: initial;
}

.my-charts g.myx-axis.x .tick.active text {
  display: initial;
}

.my-charts g.myx-axis.x .tick.selected {
  display: initial;
}

.my-charts g.myx-axis.x .selected line {
  fill: none;
  stroke: #999999;
  shape-rendering: geometricPrecision;
  stroke-width: 0.5px;
  opacity: 1;
  display: initial;
  transform: scaleY(1.1);
}

.my-charts g.inner-line-mask line {
  stroke-width: 5px;
}

.my-charts .myx-axis .domain,
g.inner-line-mask .domain {
  opacity: 0;
}

g.inner-line-mask text {
  display: none;
}

.my-charts .myx-dot {
  stroke-width: 1.5px;
  opacity: 0;
  r: 3.5px;
}

.my-charts .myx-dot[cy='NaN'],
.my-charts .myx-dot-shadow[cy='NaN'],
.my-charts .myx-dot,
.my-charts .myx-dot-shadow {
  display: none;
}

/* 展示单点 */
.myx-line .myx-dot[cy] {
  display: initial;
  opacity: 1;
  r: 0.75px;
  stroke-width: 0;
}

.myx-anime-hide {
  display: none;
}

.myx-line .selected .myx-dot[cy] {
  stroke-width: 1.5px;
}

.my-charts:not(.myx-scatter) .dot-group:not(.no-color) {
  .selected .myx-dot:not(.custom):not(.mark) {
    fill: white;
  }
}

.my-charts .dot-group.hide {
  display: none;
}

.my-charts .selected .myx-dot[cy] {
  r: 5px;
  opacity: 1;
  transition: r 0.3s;
  display: initial;
}

.myx-scatter .myx-dot {
  r: 4px;
  display: initial;
  opacity: 1;
}

.myx-scatter .selected .myx-dot {
  r: 6px;
  transition: r 0.3s;
}

.my-charts .myx-dot[cy].mark {
  r: 2px;
  opacity: 1;
  display: initial;
}

.my-charts .selected .myx-dot.mark {
  r: 2.5px;
  opacity: 1;
  transition: r 0.3s;
}

.myx-scatter .myx-dot[cy].mark {
  r: 4px;
  opacity: 1;
  display: initial;
}

.myx-scatter .selected .myx-dot.mark {
  r: 6px;
  opacity: 1;
  transition: r 0.3s;
}

.my-charts .myx-line-ele {
  fill: none;
  stroke-width: 1.5px;
}

.my-charts .tick line {
  opacity: 0;
}

.my-charts .dash-white.myx-line-ele {
  stroke-dasharray: 3, 3 !important;
  stroke-dashoffset: initial !important;
}

.my-charts .myx-tooltip {
  pointer-events: none;
}

.my-charts .myx-tooltip:not(.custom) {
  position: absolute;
  padding: 5px;
  font-size: 10px;
  line-height: 15px;
  background: rgba(255, 158, 0, 0.9);
  color: #fff;
  border-radius: 4px;
  top: 0px;
  z-index: 9;
  opacity: 0;
  white-space: nowrap;
}

.my-charts .myx-tooltip.deluxe:not(.custom) {
  padding: 5px 8px;
  background: #ffffff;
  color: #222;
  border-radius: 3px;
  top: -20px;
}

.my-charts .myx-tooltip.deluxe:not(.custom)::after {
  content: ' ';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0.95;
  border-radius: 3px;
  box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.08);
}

.myx-scatter .myx-tooltip {
  background: rgba(0, 0, 0, 0.6);
}

.myx-bar-rect.active {
  opacity: 0.95;
}

.my-charts .pie-bg {
  display: none;
}

.my-charts .pie-bg.active {
  display: inline;
  opacity: 0;
  -webkit-animation: piebg 0.2s linear forwards;
  animation: piebg 0.2s linear forwards;
}

@-webkit-keyframes piebg {
  100% {
    opacity: 0.3;
  }
}

@keyframes piebg {
  100% {
    opacity: 0.3;
  }
}

.my-charts.myx-pie {
  padding: 0;
}

.my-charts.myx-pie,
.my-charts.myx-radar {
  svg,
  canvas {
    display: block;
    margin: 0 auto;
    padding: 0;
  }
}

.my-charts .piechart-center-label {
  position: absolute;
  width: 98px;
  height: 98px;
  top: 50%;
  left: 50%;
  margin: -49px 0 0 -49px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.my-charts .pie-label {
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.my-charts .pie-label-num {
  font-size: 20px;
}

.my-charts .pie-label-name {
  color: #888;
  font-size: 14px;
  line-height: 1.5;
}

.my-charts .pie-label-line text {
  font-size: 12px;
}

.my-charts.multi .myx-tooltip:not(.custom) {
  top: 0;
  padding: 5px 8px;
  background: rgba(0, 0, 0, 0.8);
}

.my-charts.multi .myx-tooltip.deluxe:not(.custom) {
  top: -30px;
  border-radius: 5px;
  background: #ffffff;
}

.my-charts .myx-tooltip.top-swift {
  top: 20px;
}

.my-charts .tooltip-date {
  padding-bottom: 5px;
}

.my-charts .tooltip-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-bottom: 5px;
}

.my-charts.multi .myx-line-ele {
  stroke-width: 1.5px;
}

@-webkit-keyframes dash {
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes dash {
  100% {
    stroke-dashoffset: 0;
  }
}

.my-charts.multi .myx-line-ele.hide {
  display: none;
}

.my-charts.multi .selected:not(.max) .myx-dot:not(.mark) {
  fill: white;
}

.my-charts.multi .selected .myx-dot.mark {
  r: 2.5px;
}

.my-charts .selected > .myx-dot-shadow.mark {
  display: initial;
  r: 5px;
  fill: #fff;
  stroke-width: 1.5px;
}

.my-charts.multi .max .myx-dot {
  r: 5px;
  opacity: 1;
  display: initial;
}

.my-charts.multi .max.selected .myx-dot {
  fill-opacity: 1;
}

.my-charts.multi .dot-g text {
  display: none;
}

.my-charts.multi .max.dot-g text {
  display: initial;
}

.my-charts.multi .myx-dot-group.hide {
  display: none;
}

.my-charts .myx-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  overflow: hidden;
  font-size: 11px;
  font-family: PingFangSC-Regular;
  > div {
    position: relative;
    margin-right: 10px;
    margin-top: 6px;
    :last-child {
      margin-right: 0;
    }
  }

  .legend-cell-d {
    height: 22px;
    line-height: 22px;
    padding-left: 17px;
    padding-right: 10px;
    background: #f2f2f2;
    border-radius: 100px;
  }

  .legend-cell-d span {
    font-size: 11px;
    color: #606266;
  }

  b {
    position: absolute;
    font-size: 0;
    width: 6px;
    height: 6px;
    background-color: #26282e;
    border-radius: 4px;
    top: 8px;
    left: 7px;
  }

  .legend-cell-d.vain > span {
    color: #ccc !important;
  }

  .legend-cell-d.vain > b {
    background-color: #ccc !important;
  }
}

.myx-scatter-legend {
  padding: 4px 10px;
  text-align: right;
  height: 13px;
  line-height: 13px;
}

.myx-scatter-legend span {
  color: #999;
  padding-left: 3px;
  padding-right: 6px;
}

.myx-scatter-legend b {
  display: inline-block;
  background-color: #fcb205;
  font-size: 0;
  width: 5px;
  height: 5px;
  border-radius: 5px;
}

.myx-line-legend {
  padding: 4px 10px;
  text-align: right;
  height: 13px;
  line-height: 13px;
}

.myx-line-legend span {
  color: #999;
  padding-left: 3px;
  padding-right: 6px;
  font-size: 8px;
}

.myx-line-legend b {
  display: inline-block;
  background-color: #fcb205;
  font-size: 0;
  width: 5px;
  height: 5px;
  border-radius: 5px;
}

.myx-placeholder {
  box-sizing: border-box;
  padding-bottom: 33% !important;
  height: 50px;
  text-align: center;
  font-size: 14px;
  color: #fff;
  border: 1px dashed #d8d8d8;
  margin: 15px;
  position: relative;
}

.myx-placeholder p {
  background: rgba(0, 0, 0, 0.6);
  border-radius: 4px;
  line-height: 30px;
  position: absolute;
  top: 50%;
  left: 50%;
  padding: 2px 10px;
  transform: translate(-50%, -50%);
}

.my-charts.myx-radar {
  position: relative;
}

.my-charts.myx-radar text {
  font-size: 13px;
  color: #333;
}

.my-charts.myx-radar .myx-tooltip {
  left: initial;
  top: 5px;
  background: rgba(9, 9, 9, 0.8);
  transform: translate(-50%, -50%);
}

.my-charts.myx-radar .myx-tooltip .t-title {
  font-size: 12px;
  font-weight: bold;
  padding-bottom: 2px;
}

.pie-mask:active {
  fill: rgba(255, 255, 255, 0.1);
}

.my-charts.dual .myx-axis.y text {
  fill: rgb(240, 72, 72);
}

.my-charts.dual .myx-axis.y.plus line {
  stroke: rgba(94, 138, 219, 0);
}

.my-charts.dual .myx-axis.y.plus text {
  fill: rgb(94, 138, 219);
}

.my-charts .bold {
  font-weight: bold;
}

.inner-line-mark .tick line {
  stroke-width: 0.5px;
  opacity: 1;
  stroke-dasharray: 4, 2;
}

.inner-line-mark .tick text:not(.custom) {
  opacity: 0;
}

.hide-y-axis .y.myx-axis > * {
  display: none;
}

/* .hide-y-axis .y.myx-axis > .tick:last-of-type {
  display: block;
  line {
    transform: translateX(28px) scaleX(0.92);
  }
  text {
    display: none;
  }
} */

.hide-y-axis .myx-inner-x {
  display: none;
}
.hide-y-axis {
  padding: 15px;
}

.myx-bar .myx-legend,
.myx-radar .myx-legend {
  display: flex;
  justify-content: center;
}

.myx-bar .myx-legend .legend-cell-d,
.myx-radar .myx-legend .legend-cell-d {
  float: none;
  height: auto;
}

.my-charts.myx-bar .myx-tooltip {
  top: 15px;
  padding: 5px 8px;
  background: rgba(0, 0, 0, 0.8);
  transition: none;
  transform: translateX(-50%);
}

.hide-y-axis.myx-bar .x.myx-axis text,
.hide-y-axis.myx-bar .single-bar text {
  font: 12px sans-serif;
  fill: #333;
}

.myx-radar svg,
.myx-pie svg,
.myx-bar svg {
  overflow: initial;
}

.radar-wrapper.hidden {
  opacity: 0;
  transition: opacity 150ms;
}

.myx-radar .t-normal.hide {
  display: none;
}

.myx-map {
  .myx-map-path.selected {
    fill: #f5bc4c;
  }

  .myx-tooltip.deluxe:not(.custom) {
    left: 0;
    top: 10px;
    box-sizing: border-box;
    width: 100%;

    .title {
      padding-top: 4px;
      font-weight: bold;
      font-size: 14px;
    }
    .detail-flex {
      display: flex;
      padding: 8px 0 4px 0;

      .item {
        flex: 1;

        .highlight {
          color: #3e8ff1;
        }
      }
    }
  }
}
