Black Lives Matter. Please consider donating to Black Girls Code today.

Show negative and positive numbers separately on Plotly map

Hey guys, I want to show stores sales difference on Plotly mapbox. I am normally using one variable and it is fine but when I try to show negative and positive numbers as different variables I could not manage to visualise. In my data some stores are earning good money some are losing and show up as a negative number. I want to display where revenue is negative (different color but same size as positive sales)

The code I am using;

import plotly
import plotly.plotly as py
from plotly.graph_objs import *

mapbox_access_token = ‘mapbox token’

data = Data([
Scattermapbox(
lat=part1_loc[‘Latitude’],
lon=part1_loc[‘Longitude’],
text = part1_loc[‘diff2018’],
mode=‘markers’,
marker=Marker(
showscale=True,
cmax=39000,
cmin=-27000,
size= part1_loc[‘diff2018’]/300,
color =part1_loc[‘diff2018’],
#color =‘rgb(255, 0, 0)’,
colorscale= ‘Portland’,
opacity=0.6,
symbol = ‘circle’,

    ),
    
)

])
layout = Layout(
autosize=True,
hovermode=‘closest’,
width=1450,
margin=go.Margin(
l=10,
r=100,
b=10,
t=10
),
height=650,
mapbox=dict(
accesstoken=mapbox_access_token,
bearing=0,#
center=dict(
lat=-37,
lon=175
),
pitch=0,
zoom=8.9,
style=‘light’,

),

)

fig = dict(data=data, layout=layout)
py.iplot(fig, filename=‘KiwiInstant_sales_retailer_kiwi_instant’)

Also I saw two variables Plotly on internet that here Shows you can put two different variables but I do not know how I can describe as a negative and positive numbers in one data.
Thank you in advance

Not very powerful method but I fixed my problem with create two variables (positive and negative)